Kanzi 3.9.10
kanzi::Renderer::RendererSettings Struct Reference

Settings structure for the renderer construction. More...

#include <kanzi/core.ui/platform/graphics_backend/gl/renderer.hpp>

Public Types

enum  MultisamplePreference { MultisamplePreferenceNone , MultisamplePreferenceBlit , MultisamplePreferenceExplicit , MultisamplePreferenceImplicit }
 Multisample preferencce. More...
 

Public Member Functions

 RendererSettings ()
 Default constructor.
 
 RendererSettings (MultisamplePreference multisample)
 Constructor.
 

Public Attributes

MultisamplePreference multisamplePreference
 Preference when selecting the multisampling method.
 
bool shaderBinaryCacheCollisionCheck
 Indicates whether to check for hash collisions in shader binaries.
 
string shaderBinaryCacheDirectory
 Shader binary cache directory.
 
bool shaderBinaryCacheEnabled
 Indicates whether to cache shader binaries.
 
bool shaderBinaryCacheReadOnly
 Indicates whether the cache is read-only.
 

Detailed Description

Settings structure for the renderer construction.

Member Enumeration Documentation

◆ MultisamplePreference

Multisample preferencce.

Enumerator
MultisamplePreferenceNone 

No preference.

MultisamplePreferenceBlit 

Blits from the renderbuffer.

MultisamplePreferenceExplicit 

Uses explicit multisampling.

The samples must be accessed explicitly in the shader.

MultisamplePreferenceImplicit 

Uses implicit multisampling, that is, multisampled rendering to a texture without requiring an explicit resolve of the multisample data.

Constructor & Destructor Documentation

◆ RendererSettings() [1/2]

kanzi::Renderer::RendererSettings::RendererSettings ( )
inlineexplicit

Default constructor.

◆ RendererSettings() [2/2]

kanzi::Renderer::RendererSettings::RendererSettings ( MultisamplePreference multisample)
inlineexplicit

Constructor.

Parameters
multisampleMultisample preference setting.

Member Data Documentation

◆ multisamplePreference

MultisamplePreference kanzi::Renderer::RendererSettings::multisamplePreference

Preference when selecting the multisampling method.

◆ shaderBinaryCacheEnabled

bool kanzi::Renderer::RendererSettings::shaderBinaryCacheEnabled

Indicates whether to cache shader binaries.

By default, the application does not cache shader binaries.

Since
Kanzi 3.9.8

◆ shaderBinaryCacheReadOnly

bool kanzi::Renderer::RendererSettings::shaderBinaryCacheReadOnly

Indicates whether the cache is read-only.

By default, Kanzi updates the cache.

Since
Kanzi 3.9.8

◆ shaderBinaryCacheCollisionCheck

bool kanzi::Renderer::RendererSettings::shaderBinaryCacheCollisionCheck

Indicates whether to check for hash collisions in shader binaries.

By default, the application does not check for hash collisions.

Since
Kanzi 3.9.8

◆ shaderBinaryCacheDirectory

string kanzi::Renderer::RendererSettings::shaderBinaryCacheDirectory

Shader binary cache directory.

Since
Kanzi 3.9.8

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