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
SamplerType
"sampler", "sampler2D", "sampler3D", "samplerCUBE", "SamplerState", etc.
public required string SamplerType { get; init; }
Property Value
Span
Source location of the entire sampler declaration.
public required SourceSpan Span { get; init; }
Property Value
StateEntries
All non-Texture state entries declared inside the sampler_state block.
public required IReadOnlyList<SamplerStateEntry> StateEntries { get; init; }
Property Value
TextureReference
The identifier inside Texture = <X> or Texture = X, if present.
public required string? TextureReference { get; init; }