Table of Contents

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

Name string

The constant-buffer name (e.g. $Globals).

SizeInBytes int

The buffer's total size in bytes.

ParameterIndices IReadOnlyList<int>

Indices into the effect's parameter list of the parameters in this buffer.

ParameterOffsets IReadOnlyList<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

string

ParameterIndices

Indices into the effect's parameter list of the parameters in this buffer.

public IReadOnlyList<int> ParameterIndices { get; init; }

Property Value

IReadOnlyList<int>

ParameterOffsets

Each parameter's byte offset within the buffer, parallel to ParameterIndices.

public IReadOnlyList<ushort> ParameterOffsets { get; init; }

Property Value

IReadOnlyList<ushort>

SizeInBytes

The buffer's total size in bytes.

public int SizeInBytes { get; init; }

Property Value

int