Table of Contents

Class BindingSlotMap

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

Maps texture and sampler names to their bind slots, used to align reflected resource names with the slots emitted in the compiled shader.

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

Fields

Empty

An empty map with no texture or sampler bindings.

public static readonly BindingSlotMap Empty

Field Value

BindingSlotMap

Properties

Samplers

Sampler name → bind slot.

public required IReadOnlyDictionary<string, int> Samplers { get; init; }

Property Value

IReadOnlyDictionary<string, int>

Textures

Texture name → bind slot.

public required IReadOnlyDictionary<string, int> Textures { get; init; }

Property Value

IReadOnlyDictionary<string, int>