ezEngine  Release 25.03
ezShaderConstant Struct Reference

The reflection data of a constant in a shader constant buffer. More...

#include <ShaderByteCode.h>

Classes

struct  Type
 

Public Member Functions

 EZ_DECLARE_MEM_RELOCATABLE_TYPE ()
 
void CopyDataFormVariant (ezUInt8 *pDest, ezVariant *pValue) const
 

Public Attributes

ezHashedString m_sName
 
ezEnum< Typem_Type
 
ezUInt8 m_uiArrayElements = 0
 
ezUInt16 m_uiOffset = 0
 

Static Public Attributes

static ezUInt32 s_TypeSize [Type::ENUM_COUNT]
 

Detailed Description

The reflection data of a constant in a shader constant buffer.

See also
ezShaderConstantBufferLayout

Member Data Documentation

◆ s_TypeSize

ezUInt32 ezShaderConstant::s_TypeSize
static
Initial value:
= {0, sizeof(float) * 1, sizeof(float) * 2, sizeof(float) * 3, sizeof(float) * 4, sizeof(int) * 1, sizeof(int) * 2, sizeof(int) * 3, sizeof(int) * 4, sizeof(ezUInt32) * 1, sizeof(ezUInt32) * 2,
sizeof(ezUInt32) * 3, sizeof(ezUInt32) * 4, sizeof(ezShaderMat3), sizeof(ezMat4), sizeof(ezShaderTransform), sizeof(ezShaderBool)}

The documentation for this struct was generated from the following files:
ezShaderMat3
A wrapper class that converts a ezMat3 into the correct data layout for shaders.
Definition: Types.h:10
ezShaderTransform
A wrapper class that converts a ezTransform into the correct data layout for shaders.
Definition: Types.h:90
ezMat4Template< float >
ezShaderBool
A wrapper class that converts a bool into the correct data layout for shaders.
Definition: Types.h:157