Table of Contents

Class SamplerInfo

Namespace
ShadowDusk.HLSL.Ast
Assembly
ShadowDusk.HLSL.dll

Represents a parsed FX9 sampler declaration with its sampler_state block.

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

Properties

Name

The declared sampler variable name.

public required string Name { get; init; }

Property Value

string

SamplerType

"sampler", "sampler2D", "sampler3D", "samplerCUBE", "SamplerState", etc.

public required string SamplerType { get; init; }

Property Value

string

Span

Source location of the entire sampler declaration.

public required SourceSpan Span { get; init; }

Property Value

SourceSpan

StateEntries

All non-Texture state entries declared inside the sampler_state block.

public required IReadOnlyList<SamplerStateEntry> StateEntries { get; init; }

Property Value

IReadOnlyList<SamplerStateEntry>

TextureReference

The identifier inside Texture = <X> or Texture = X, if present.

public required string? TextureReference { get; init; }

Property Value

string