Class VfxVariableIndexArray
Namespace: ValveResourceFormat.CompiledShader
Assembly: ValveResourceFormat.dll
A variable write sequence: the ordered list of variable indices and register offsets a combo writes its variables with, split into evaluated, render state, and constant segments.
public class VfxVariableIndexArray : ShaderDataBlockInheritance
object ← ShaderDataBlock ← VfxVariableIndexArray
Inherited Members
ShaderDataBlock.Start, ShaderDataBlock.ReadStringWithMaxLength(BinaryReader, int)
Constructors
VfxVariableIndexArray(ReadOnlySpan<uint>, int, int, int)
Initializes a new instance of the class from a span of fields.
public VfxVariableIndexArray(ReadOnlySpan<uint> fields, int firstRenderStateElement, int firstConstantElement, int index)Parameters
fields ReadOnlySpan<uint>
The variable index fields.
firstRenderStateElement int
The index of the first render state element.
firstConstantElement int
The index of the first constant element.
index int
The index in the owning array.
VfxVariableIndexArray(BinaryReader, int, bool)
Initializes a new instance of the class from a binary stream.
public VfxVariableIndexArray(BinaryReader datareader, int index, bool readRegisterOffset)Parameters
datareader BinaryReader
The binary reader to read from.
index int
The index in the owning array.
readRegisterOffset bool
Whether to read the register offset.
Properties
Constants
Gets the constant variable indices.
public IReadOnlyList<VfxVariableIndexData> Constants { get; }Property Value
IReadOnlyList<VfxVariableIndexData>
Evaluated
Gets the evaluated variable indices.
public IReadOnlyList<VfxVariableIndexData> Evaluated { get; }Property Value
IReadOnlyList<VfxVariableIndexData>
Fields
Gets the array of variable index fields.
public VfxVariableIndexData[] Fields { get; }Property Value
FirstConstantElement
Gets the index of the first constant element.
public int FirstConstantElement { get; }Property Value
FirstRenderStateElement
Gets the index of the first render state element.
public int FirstRenderStateElement { get; }Property Value
Index
Gets the index in the owning array.
public int Index { get; }Property Value
RenderState
Gets the render state variable indices.
public IReadOnlyList<VfxVariableIndexData> RenderState { get; }
