ShaderCompiler::TextureDirective struct

Texture unit assignment for a sampler uniform — from a "texture_unit(N)" uniform hint or the implicit canvas TEXTURE registration.

Public variables

String Name
Sampler uniform name.
std::int32_t Unit
Assigned texture unit, or -1 when unassigned.
std::int32_t Line
1-based line number the directive came from