Struct VfxVariableIndexData ​
Namespace: ValveResourceFormat.CompiledShader
Assembly: ValveResourceFormat.dll
One write sequence entry: a variable index paired with the register offset it is written to.
public readonly struct VfxVariableIndexDataRemarks ​
Resource encoded shaders store each entry as one 32-bit value that is reinterpreted as this struct, so the field order and size are part of the format: register offset in the low half, packed index in the high half.
Properties ​
BindingSlot ​
Gets the binding slot, the low byte of the register offset. It is 255 when the variable has no register.
public int BindingSlot { get; }Property Value ​
int
Control ​
Gets the high byte of the register offset. Only meaningful for constant buffer bindings, where it appears to be the buffer's base register in a linearly allocated constant register space.
public int Control { get; }Property Value ​
int
LayoutSet ​
Gets the descriptor set ID in the shader layout.
public int LayoutSet { get; }Property Value ​
int
PackedIndex ​
Gets the packed variable index and layout set.
public short PackedIndex { get; init; }Property Value ​
short
RegisterOffset ​
Gets the register offset the variable is written to.
public short RegisterOffset { get; init; }Property Value ​
short
VariableIndex ​
Gets the variable index into VfxProgramData.VariableDescriptions.
public int VariableIndex { get; }Property Value ​
int

