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. | |
| VertexInputStateCache & | operator= (const VertexInputStateCache &)=delete |
| Deleted copy operator. | |
| VertexInputStateCache & | operator= (VertexInputStateCache &&)=delete |
| Deleted move operator. | |
| VertexInputStateCache ()=default | |
| Constructor. | |
| VertexInputStateCache (const VertexInputStateCache &)=delete | |
| Deleted copy constructor. | |
| VertexInputStateCache (VertexInputStateCache &&)=delete | |
| Deleted move constructor. | |
Use a Vertex Input State Cache to lookup a Kanzi graphics Vertex Input State.
Storage type.
|
default |
Constructor.
|
delete |
Deleted copy constructor.
|
delete |
Deleted move constructor.
|
delete |
Deleted copy operator.
|
delete |
Deleted move operator.
| 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.
| createInfo | Input state create info. |
| void kanzi::VertexInputStateCache::invalidate | ( | ) |
Invalidates the cache and releases all kanzi graphics handles.