Table of Contents

Class ConstantBufferReflection

Namespace
ShadowDusk.Core.Reflection
Assembly
ShadowDusk.Core.dll

A reflected constant (uniform) buffer: its name, size, bind slot, and variables.

public sealed record ConstantBufferReflection : IEquatable<ConstantBufferReflection>
Inheritance
ConstantBufferReflection
Implements
Inherited Members

Properties

BindSlot

The register/bind slot the buffer occupies.

public required int BindSlot { get; init; }

Property Value

int

Name

The constant buffer's name.

public required string Name { get; init; }

Property Value

string

SizeBytes

The total size of the buffer in bytes.

public required int SizeBytes { get; init; }

Property Value

int

Variables

The variables packed into the buffer, in offset order.

public required IReadOnlyList<VariableReflection> Variables { get; init; }

Property Value

IReadOnlyList<VariableReflection>