Table of Contents

Class Fx2SamplerState

Namespace
ShadowDusk.Core
Assembly
ShadowDusk.Core.dll

One sampler-state assignment inside a sampler parameter's value blob. Exactly one of TextureParameterName (op 164/Texture), FloatValue, or IntValue is set.

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

Properties

FloatValue

Float-valued states (MipMapLodBias).

public float? FloatValue { get; init; }

Property Value

float?

IntValue

Integer/enum-valued states (filters, address modes, …).

public int? IntValue { get; init; }

Property Value

int?

Operation

The on-disk state op — 164-based (0xA4 = Texture … 0xAE = MaxAnisotropy). The writer rejects the four ops FNA's runtime throws on (BorderColor 168, SRGBTexture 175, ElementIndex 176, DMapOffset 177).

public required int Operation { get; init; }

Property Value

int

TextureParameterName

For op 164 (Texture): the name of the texture parameter to bind.

public string? TextureParameterName { get; init; }

Property Value

string