Kanzi 4.0.0-beta2
Layers
Collaboration diagram for Layers:

Classes

class  kanzi::gfx::AbstractBackend
 Defines of a graphics library backend. More...
 
class  kanzi::gfx::BackendLayer
 Base class for a backend layer. More...
 
class  kanzi::gfx::DebugInformation
 Interface to access Kanzi graphics debug information, such as object names. More...
 
class  kanzi::gfx::Statistics
 Interface to access Kanzi graphics statistics, such as object and command counts. More...
 

Functions

KANZI_GFX_API shared_ptr< BackendLayerkanzi::gfx::createStatisticsLayer ()
 Constructs a statistics layer for the Kanzi graphics library.
 
KANZI_GFX_API shared_ptr< BackendLayerkanzi::gfx::createValidationLayer ()
 Constructs a validation layer for the Kanzi graphics library.
 

Detailed Description

The backend layers in the graphics library. Use layers to augment and customize a backend with new features.

Function Documentation

◆ createStatisticsLayer()

KANZI_GFX_API shared_ptr< BackendLayer > kanzi::gfx::createStatisticsLayer ( )

Constructs a statistics layer for the Kanzi graphics library.

To install the return from this function, use the InitializationInfo structure during initialization. To allow access to the statistics at runtime, you can cast the return value to the Statistics interface. You can call this function before the graphics initialization.

Returns
A new statistics layer.
Since
Kanzi 4.0.0

◆ createValidationLayer()

KANZI_GFX_API shared_ptr< BackendLayer > kanzi::gfx::createValidationLayer ( )

Constructs a validation layer for the Kanzi graphics library.

You can use the validation layer to ensure proper usage of the graphics API. Validation errors appear in the default console. To install the validation layer returned from this function, use the InitializationInfo structure during initialization. You can call this function before the graphics initialization. The validation layer returned implements the DebugInformation interface and can be used to get diagnostic information about Kanzi graphics objects.

Returns
A validation layer.
Since
Kanzi 4.0.0