Kanzi 4.0.0-beta2
kanzi::RasterStateCache Class Reference

Use a Raster State Cache to look up a Kanzi graphics Raster State. More...

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

Public Member Functions

gfx::RasterStateHandleGuard get (GraphicsFillMode fillMode, GraphicsCullMode cullMode, GraphicsPrimitiveType topology, Vector2 depthOffset)
 Gets or creates a graphics Raster State for the requested state.
 
void invalidate ()
 Invalidates the cache and releases all Kanzi graphics handles.
 
RasterStateCacheoperator= (const RasterStateCache &)=delete
 
RasterStateCacheoperator= (RasterStateCache &&)=delete
 
 RasterStateCache ()=default
 Constructor.
 
 RasterStateCache (const RasterStateCache &)=delete
 
 RasterStateCache (RasterStateCache &&)=delete
 

Detailed Description

Use a Raster State Cache to look up a Kanzi graphics Raster State.

Since
Kanzi 4.0.0

Constructor & Destructor Documentation

◆ RasterStateCache() [1/3]

kanzi::RasterStateCache::RasterStateCache ( )
default

Constructor.

◆ RasterStateCache() [2/3]

kanzi::RasterStateCache::RasterStateCache ( const RasterStateCache & )
delete

◆ RasterStateCache() [3/3]

kanzi::RasterStateCache::RasterStateCache ( RasterStateCache && )
delete

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ get()

gfx::RasterStateHandleGuard kanzi::RasterStateCache::get ( GraphicsFillMode fillMode,
GraphicsCullMode cullMode,
GraphicsPrimitiveType topology,
Vector2 depthOffset )

Gets or creates a graphics Raster State for the requested state.

Parameters
fillModeThe graphics fill mode.
cullModeThe graphics cull mode.
topologyThe primitive topology.
depthOffsetThe depth bias. The first component represents a constant depth, and the second component represents a slope factor.
Returns
The Kanzi graphics Raster State handle.

◆ invalidate()

void kanzi::RasterStateCache::invalidate ( )

Invalidates the cache and releases all Kanzi graphics handles.


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