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