Class VfxVariableIndexArray
- Namespace
- ValveResourceFormat.CompiledShader
- Assembly
- ValveResourceFormat.dll
Represents an array of variable indices in a VFX shader program.
public class VfxVariableIndexArray : ShaderDataBlock
Inheritance
Inherited Members
Constructors
VfxVariableIndexArray(ReadOnlySpan<uint>, int, int, int)
Initializes a new instance of the ValveResourceFormat.CompiledShader.VfxVariableIndexArray class from a span of fields.
public VfxVariableIndexArray(ReadOnlySpan<uint> fields, int firstRenderStateElement, int firstConstantElement, int blockIndex)
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.
blockIndex
int-
The block index.
VfxVariableIndexArray(BinaryReader, int, bool)
Initializes a new instance of the ValveResourceFormat.CompiledShader.VfxVariableIndexArray class from a binary stream.
public VfxVariableIndexArray(BinaryReader datareader, int blockId, bool readDest)
Parameters
datareader
BinaryReader-
The binary reader to read from.
blockId
int-
The block ID.
readDest
bool-
Whether to read the destination field.
Properties
BlockId
Gets the block ID.
public int BlockId { get; }
Property Value
Dataload
Gets the raw data as a byte span.
public ReadOnlySpan<byte> Dataload { get; }
Property Value
Evaluated
Gets the evaluated variable indices.
public IReadOnlyList<VfxVariableIndexData> Evaluated { get; }
Property Value
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
Globals
Gets the global variable indices.
public IReadOnlyList<VfxVariableIndexData> Globals { get; }
Property Value
RenderState
Gets the render state variable indices.
public IReadOnlyList<VfxVariableIndexData> RenderState { get; }