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

Input/output attribute and uniform reflection structure. More...

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

Public Member Functions

 Attribute ()=default
 Default constructor.
 
 Attribute (const String &name, const Int32 slot)
 Constructor to initialize all members.
 

Public Attributes

bool referenced = false
 Specifies whether this attribute is referenced in the output shader unit. By default false.
 
String name
 Name of the attribute.
 
Int32 slot = -1
 Zero-based attribute slot number. If this is -1, the binding slot was not specified. By default -1.
 

Detailed Description

Input/output attribute and uniform reflection structure.

See also
ReflectionData::inputAttributes
ReflectionData::outputAttributes

Constructor & Destructor Documentation

◆ Attribute() [1/2]

CeresEngine::ShaderCompiler::Reflection::Attribute::Attribute ( )
default

Default constructor.

◆ Attribute() [2/2]

CeresEngine::ShaderCompiler::Reflection::Attribute::Attribute ( const String name,
const Int32  slot 
)
inline

Constructor to initialize all members.

Member Data Documentation

◆ name

String CeresEngine::ShaderCompiler::Reflection::Attribute::name

Name of the attribute.

◆ referenced

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

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

◆ slot

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

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


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