Class ConstantBufferDescription
- Namespace
- ValveResourceFormat.CompiledShader
- Assembly
- ValveResourceFormat.dll
Describes an external constant buffer and its variables.
public class ConstantBufferDescription : ShaderDataBlock
Inheritance
Inherited Members
Constructors
ConstantBufferDescription(BinaryReader, int)
Initializes a new instance from a binary reader.
public ConstantBufferDescription(BinaryReader datareader, int blockIndex)
Parameters
datareader
BinaryReaderblockIndex
int
Properties
BlockCrc
Gets the CRC32 checksum of the block.
public uint BlockCrc { get; }
Property Value
BlockIndex
Gets the block index.
public int BlockIndex { get; }
Property Value
BufferSize
Gets the buffer size in bytes.
public int BufferSize { get; }
Property Value
Name
Gets the constant buffer name.
public string Name { get; }
Property Value
Type
Gets the buffer type.
public int Type { get; }
Property Value
Variables
Gets the array of variables in this constant buffer.
public ConstantBufferDescription.ConstantBufferVariable[] Variables { get; }