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

Resource reflection structure for textures, combined texture samplers, and buffers. More...

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

Public Attributes

bool referenced = false
 Specifies whether this resource 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 resource.
 
Int32 slot = -1
 Zero-based binding slot number. If this is -1, the binding slot was not specified. By default -1.
 

Detailed Description

Resource reflection structure for textures, combined texture samplers, and buffers.

See also
ReflectionData::resources

Member Data Documentation

◆ name

String CeresEngine::ShaderCompiler::Reflection::Resource::name

Name of the resource.

◆ referenced

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

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

◆ slot

Int32 CeresEngine::ShaderCompiler::Reflection::Resource::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::Resource::type = ResourceType::Undefined

Resource type. By default ResourceType::Undefined.


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