NDEVR
API Documentation
GLESShader::Definition

Defines the set of features a shader must support, used to select or compile the correct variant. More...

Public Member Functions

uint04 id () const
 Computes a unique identifier for this definition based on its flags.

Public Attributes

bool has_color_channel = false
 Whether a per-vertex color channel is available.
bool has_grid = false
 Whether grid overlay rendering is enabled.
bool has_normal_channel = false
 Whether a per-vertex normal channel is available.
bool has_texture = false
 Whether texture mapping is enabled.
bool is_integer = false
 Whether vertex attributes are integer-typed.
bool is_relative_to_camera = false
 Whether rendering is camera-relative.
bool is_simple = false
 Whether the shader uses simplified rendering.
bool is_tbn = false
 Whether tangent-bitangent-normal data is used.
uint04 palette_size = 0U
 The number of palette colors.
ShaderType type = ShaderType::e_points
 The geometry type this shader handles.

Detailed Description

Defines the set of features a shader must support, used to select or compile the correct variant.

Definition at line 36 of file GLESShader.h.

Member Function Documentation

◆ id()

uint04 GLESShader::Definition::id ( ) const
inline

Computes a unique identifier for this definition based on its flags.

Returns
A uint04 hash uniquely identifying this shader configuration.

Definition at line 50 of file GLESShader.h.

References cast(), has_color_channel, has_grid, has_normal_channel, has_texture, is_integer, is_relative_to_camera, is_simple, is_tbn, IsInvalid(), palette_size, and type.


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