Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::ShaderCodeVariableDesc Struct Reference

Describes the shader code variable. More...

#include <Shader.h>

Public Member Functions

bool operator== (const ShaderCodeVariableDesc &RHS) const noexcept
 Comparison operator tests if two structures are equivalent.
 

Public Attributes

const char * Name = nullptr
 The variable name.
 
const char * TypeName = nullptr
 The variable type name. May be null for basic types.
 
SHADER_CODE_VARIABLE_CLASS Class = SHADER_CODE_VARIABLE_CLASS_UNKNOWN
 Variable class, see Diligent::SHADER_CODE_VARIABLE_CLASS.
 
SHADER_CODE_BASIC_TYPE BasicType = SHADER_CODE_BASIC_TYPE_UNKNOWN
 Basic data type, see Diligent::SHADER_CODE_BASIC_TYPE.
 
Uint8 NumRows = 0
 For a matrix type, the number of rows.
 
Uint8 NumColumns = 0
 For a matrix type, the number of columns. For a vector, the number of components.
 
Uint32 Offset = 0
 Offset, in bytes, between the start of the parent structure and this variable.
 
Uint32 ArraySize = 0
 Array size.
 
Uint32 NumMembers = 0
 For a structure, the number of structure members; otherwise 0.
 
const struct ShaderCodeVariableDescpMembers = nullptr
 For a structure, an array of NumMembers structure members.
 

Detailed Description

Describes the shader code variable.

Member Data Documentation

◆ NumColumns

Uint8 Diligent::ShaderCodeVariableDesc::NumColumns = 0

For a matrix type, the number of columns. For a vector, the number of components.

Note
For shaders compiled from GLSL, NumRows and NumColumns are swapped.

◆ NumRows

Uint8 Diligent::ShaderCodeVariableDesc::NumRows = 0

For a matrix type, the number of rows.

Note
For shaders compiled from GLSL, NumRows and NumColumns are swapped.