CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::ShaderCompiler::Reflection::ConstantBuffer Struct Reference

Constant buffer reflection structure. More...

#include <CeresEngine/Material/ShaderCompiler/Reflection.hpp>

Public Attributes

bool referenced = false
 Specifies whether this constant buffer is referenced in the output shader unit. By default false.
 
ResourceType type = ResourceType::Undefined
 Resource type. By default ResourceType::Undefined.
 
String name
 Name of the constant buffer.
 
Int32 slot = -1
 Zero-based binding slot number. If this is -1, the binding slot was not specified. By default -1.
 
Vector< Fieldfields
 Collection of all fields within this constant buffer.
 
UInt32 size = 0
 Size (in bytes) of the constant buffer with a 16-byte alignment. If this is 0xFFFFFFFF, the buffer size could not be determined. By default 0.
 
UInt32 padding = 0
 Size (in bytes) of the padding that is added to the constant buffer. By default 0.
 

Detailed Description

Constant buffer reflection structure.

See also
ReflectionData::constantBuffers

Member Data Documentation

◆ fields

Vector<Field> CeresEngine::ShaderCompiler::Reflection::ConstantBuffer::fields

Collection of all fields within this constant buffer.

◆ name

String CeresEngine::ShaderCompiler::Reflection::ConstantBuffer::name

Name of the constant buffer.

◆ padding

UInt32 CeresEngine::ShaderCompiler::Reflection::ConstantBuffer::padding = 0

Size (in bytes) of the padding that is added to the constant buffer. By default 0.

◆ referenced

bool CeresEngine::ShaderCompiler::Reflection::ConstantBuffer::referenced = false

Specifies whether this constant buffer is referenced in the output shader unit. By default false.

◆ size

UInt32 CeresEngine::ShaderCompiler::Reflection::ConstantBuffer::size = 0

Size (in bytes) of the constant buffer with a 16-byte alignment. If this is 0xFFFFFFFF, the buffer size could not be determined. By default 0.

◆ slot

Int32 CeresEngine::ShaderCompiler::Reflection::ConstantBuffer::slot = -1

Zero-based binding slot number. If this is -1, the binding slot was not specified. By default -1.

◆ type

ResourceType CeresEngine::ShaderCompiler::Reflection::ConstantBuffer::type = ResourceType::Undefined

Resource type. By default ResourceType::Undefined.


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