Table of Contents

Class SamplerReflection

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

A reflected sampler binding: its name, bind slot, and associated texture.

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

Properties

BindSlot

The sampler's bind slot.

public required int BindSlot { get; init; }

Property Value

int

IsCombined

True when this sampler and its texture are one combined SPIR-V resource (OpTypeSampledImage, from a legacy sampler2D-style declaration) rather than two separate resources (modern Texture2D + SamplerState). Used only by the Vulkan container's descriptor-layout table.

public bool IsCombined { get; init; }

Property Value

bool

Name

The sampler's name.

public required string Name { get; init; }

Property Value

string

RawBinding

The raw SPIR-V Binding decoration (unlike BindSlot). Used only by the Vulkan container's descriptor-layout table. Default 0 for non-Vulkan.

public int RawBinding { get; init; }

Property Value

int

RawDescriptorSet

The raw SPIR-V DescriptorSet decoration. See RawBinding.

public int RawDescriptorSet { get; init; }

Property Value

int

TextureName

The name of the texture this sampler is paired with, if known.

public string? TextureName { get; init; }

Property Value

string