Class ConstantBufferInfo
- Namespace
- ShadowDusk.Core
- Assembly
- ShadowDusk.Core.dll
One effect constant buffer as the MGFX writer serializes it: its name, byte size, and the effect parameters it contains (by index into the effect's flattened parameter list) with each parameter's byte offset within the buffer.
public sealed record ConstantBufferInfo : IEquatable<ConstantBufferInfo>
- Inheritance
-
ConstantBufferInfo
- Implements
- Inherited Members
Constructors
ConstantBufferInfo(string, int, IReadOnlyList<int>, IReadOnlyList<ushort>)
One effect constant buffer as the MGFX writer serializes it: its name, byte size, and the effect parameters it contains (by index into the effect's flattened parameter list) with each parameter's byte offset within the buffer.
public ConstantBufferInfo(string Name, int SizeInBytes, IReadOnlyList<int> ParameterIndices, IReadOnlyList<ushort> ParameterOffsets)
Parameters
NamestringThe constant-buffer name (e.g.
$Globals).SizeInBytesintThe buffer's total size in bytes.
ParameterIndicesIReadOnlyList<int>Indices into the effect's parameter list of the parameters in this buffer.
ParameterOffsetsIReadOnlyList<ushort>Each parameter's byte offset within the buffer, parallel to
ParameterIndices.
Properties
Name
The constant-buffer name (e.g. $Globals).
public string Name { get; init; }
Property Value
ParameterIndices
Indices into the effect's parameter list of the parameters in this buffer.
public IReadOnlyList<int> ParameterIndices { get; init; }
Property Value
ParameterOffsets
Each parameter's byte offset within the buffer, parallel to ParameterIndices.
public IReadOnlyList<ushort> ParameterOffsets { get; init; }
Property Value
SizeInBytes
The buffer's total size in bytes.
public int SizeInBytes { get; init; }