Skip to content

Struct SamplerDescription

Namespace: Apogee.Graphics
Assembly: Apogee.Graphics.dll

What a sampler does. other than the average needs and is not combined with .

public readonly record struct SamplerDescription : IEquatable<SamplerDescription>

Implements

IEquatable<SamplerDescription>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

SamplerDescription(Filter, MipmapMode, AddressMode, float, bool, SamplerReduction)

What a sampler does. other than the average needs and is not combined with .

public SamplerDescription(Filter Filter = Filter.Linear, MipmapMode MipmapMode = MipmapMode.Linear, AddressMode AddressMode = AddressMode.Repeat, float MaxAnisotropy = 1, bool Compare = false, SamplerReduction Reduction = SamplerReduction.WeightedAverage)

Parameters

Filter Filter

MipmapMode MipmapMode

AddressMode AddressMode

MaxAnisotropy float

Compare bool

Reduction SamplerReduction

Properties

AddressMode

public AddressMode AddressMode { get; init; }

Property Value

AddressMode

Compare

public bool Compare { get; init; }

Property Value

bool

Filter

public Filter Filter { get; init; }

Property Value

Filter

LinearClamp

public static SamplerDescription LinearClamp { get; }

Property Value

SamplerDescription

LinearRepeat

public static SamplerDescription LinearRepeat { get; }

Property Value

SamplerDescription

MaxAnisotropy

public float MaxAnisotropy { get; init; }

Property Value

float

MipmapMode

public MipmapMode MipmapMode { get; init; }

Property Value

MipmapMode

NearestClamp

public static SamplerDescription NearestClamp { get; }

Property Value

SamplerDescription

Reduction

public SamplerReduction Reduction { get; init; }

Property Value

SamplerReduction

Shadow

public static SamplerDescription Shadow { get; }

Property Value

SamplerDescription

Methods

MinMax(SamplerReduction)

Depth comparison (shadow maps): returns how much of a texel passes reference >= depth.

public static SamplerDescription MinMax(SamplerReduction reduction)

Parameters

reduction SamplerReduction

Returns

SamplerDescription