nCine::RHI::GXM::GxmShaderProgram::GxmSamplerSlot struct

Where one of a stage's samplers takes its texture from.

The two indices are not the same thing: EngineUnit is the texture unit the pipeline binds a texture to (the reflection's assignment, which the material sets), while TextureIndex is the sceGxm texture slot the compiled shader reads it from.

Public variables

const char* Name
std::uint32_t EngineUnit
std::uint32_t TextureIndex