Kanzi 4.1.0
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, gfx::ColorWriteMask writeMask, bool alphaToCoverageEnabled)
 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,
gfx::ColorWriteMask writeMask,
bool alphaToCoverageEnabled )

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

Parameters
blendModeThe blendMode to lookup.
writeMaskThe color write mask.
alphaToCoverageEnabledWhether alpha to coverage is enabled.
Returns
The Kanzi graphics Blend State handle.
Since
Kanzi 4.1.0 writeMask parameter renamed from writeMode; type changed from GraphicsColorWriteMode to gfx::ColorWriteMask.

◆ 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: