Plasma Engine  2.0
Loading...
Searching...
No Matches
plShaderConstant Struct Reference

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

#include <ShaderByteCode.h>

Classes

struct  Type
 

Public Member Functions

 PL_DECLARE_MEM_RELOCATABLE_TYPE ()
 
void CopyDataFormVariant (plUInt8 *pDest, plVariant *pValue) const
 

Public Attributes

plHashedString m_sName
 
plEnum< Typem_Type
 
plUInt8 m_uiArrayElements = 0
 
plUInt16 m_uiOffset = 0
 

Static Public Attributes

static plUInt32 s_TypeSize [Type::ENUM_COUNT]
 

Detailed Description

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

See also
plShaderConstantBufferLayout

Member Data Documentation

◆ s_TypeSize

plUInt32 plShaderConstant::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(plUInt32) * 1, sizeof(plUInt32) * 2,
sizeof(plUInt32) * 3, sizeof(plUInt32) * 4, sizeof(plShaderMat3), sizeof(plMat4), sizeof(plShaderTransform), sizeof(plShaderBool)}
A wrapper class that converts a bool into the correct data layout for shaders.
Definition Types.h:97
A wrapper class that converts a plMat3 into the correct data layout for shaders.
Definition Types.h:10
A wrapper class that converts a plTransform into the correct data layout for shaders.
Definition Types.h:35

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