Kanzi 4.0.0-beta2
kanzi::BlendStateCache Class Reference

Use a Blend State Cache to lookup a Kanzi graphics Blend State. More...

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

Public Member Functions

 BlendStateCache ()=default
 Constructor.
 
 BlendStateCache (BlendStateCache &&)=delete
 
 BlendStateCache (const BlendStateCache &)=delete
 
gfx::BlendStateHandleGuard get (int blendMode, GraphicsColorWriteMode writeMode)
 Gets or creates a Graphics Blend State for the requested state.
 
void invalidate ()
 Invalidates the cache and releases all kanzi graphics handles.
 
BlendStateCacheoperator= (BlendStateCache &&)=delete
 
BlendStateCacheoperator= (const BlendStateCache &)=delete
 

Detailed Description

Use a Blend State Cache to lookup a Kanzi graphics Blend State.

Since
Kanzi 4.0.0

Constructor & Destructor Documentation

◆ BlendStateCache() [1/3]

kanzi::BlendStateCache::BlendStateCache ( )
default

Constructor.

◆ BlendStateCache() [2/3]

kanzi::BlendStateCache::BlendStateCache ( const BlendStateCache & )
delete

◆ BlendStateCache() [3/3]

kanzi::BlendStateCache::BlendStateCache ( BlendStateCache && )
delete

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ get()

gfx::BlendStateHandleGuard kanzi::BlendStateCache::get ( int blendMode,
GraphicsColorWriteMode writeMode )

Gets or creates a Graphics Blend State for the requested state.

Parameters
blendModeThe blendMode to lookup.
writeModeThe Color write mode.
Returns
The Kanzi graphics Blend State handle.

◆ invalidate()

void kanzi::BlendStateCache::invalidate ( )

Invalidates the cache and releases all kanzi graphics handles.


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