ShaderCompiler::TextureInfo struct

Sampler uniform with its optional "texture_unit(N)" hint unit assignment.

Public variables

String Name
Sampler uniform name.
GlslType Type
Sampler type (GlslType::Sampler2D, GlslType::Sampler3D or GlslType::SamplerCube).
std::int32_t Unit
Texture unit from a texture_unit(N) hint, or -1 when unassigned.