Kanzi 4.0.0-beta2
kanzi::VertexInputStateCache Class Reference

Use a Vertex Input State Cache to lookup a Kanzi graphics Vertex Input State. More...

#include <kanzi/core.ui/graphics/vertex_input_state_cache.hpp>

Public Types

using storage_type
 Storage type.
 

Public Member Functions

gfx::VertexInputStateHandleGuard get (const gfx::VertexInputStateCreateInfo &createInfo)
 Gets or creates a Vertex Input State State for the requested state.
 
void invalidate ()
 Invalidates the cache and releases all kanzi graphics handles.
 
VertexInputStateCacheoperator= (const VertexInputStateCache &)=delete
 Deleted copy operator.
 
VertexInputStateCacheoperator= (VertexInputStateCache &&)=delete
 Deleted move operator.
 
 VertexInputStateCache ()=default
 Constructor.
 
 VertexInputStateCache (const VertexInputStateCache &)=delete
 Deleted copy constructor.
 
 VertexInputStateCache (VertexInputStateCache &&)=delete
 Deleted move constructor.
 

Detailed Description

Use a Vertex Input State Cache to lookup a Kanzi graphics Vertex Input State.

Since
Kanzi 4.0.0

Member Typedef Documentation

◆ storage_type

Constructor & Destructor Documentation

◆ VertexInputStateCache() [1/3]

kanzi::VertexInputStateCache::VertexInputStateCache ( )
default

Constructor.

◆ VertexInputStateCache() [2/3]

kanzi::VertexInputStateCache::VertexInputStateCache ( const VertexInputStateCache & )
delete

Deleted copy constructor.

◆ VertexInputStateCache() [3/3]

kanzi::VertexInputStateCache::VertexInputStateCache ( VertexInputStateCache && )
delete

Deleted move constructor.

Member Function Documentation

◆ operator=() [1/2]

VertexInputStateCache & kanzi::VertexInputStateCache::operator= ( const VertexInputStateCache & )
delete

Deleted copy operator.

◆ operator=() [2/2]

VertexInputStateCache & kanzi::VertexInputStateCache::operator= ( VertexInputStateCache && )
delete

Deleted move operator.

◆ get()

gfx::VertexInputStateHandleGuard kanzi::VertexInputStateCache::get ( const gfx::VertexInputStateCreateInfo & createInfo)

Gets or creates a Vertex Input State State for the requested state.

This is a relatively heavy operation due to the need to compare the full create info structure. Should only be done when creating a new mesh as opposed to every frame.

Parameters
createInfoInput state create info.
Returns
The Kanzi graphics VertexInputState handle.

◆ invalidate()

void kanzi::VertexInputStateCache::invalidate ( )

Invalidates the cache and releases all kanzi graphics handles.


The documentation for this class was generated from the following file: