Struct SamplerDescription¶
Namespace: Apogee.Graphics
Assembly: Apogee.Graphics.dll
What a sampler does.
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.
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¶
Compare¶
public bool Compare { get; init; }
Property Value¶
Filter¶
public Filter Filter { get; init; }
Property Value¶
LinearClamp¶
public static SamplerDescription LinearClamp { get; }
Property Value¶
LinearRepeat¶
public static SamplerDescription LinearRepeat { get; }
Property Value¶
MaxAnisotropy¶
public float MaxAnisotropy { get; init; }
Property Value¶
MipmapMode¶
public MipmapMode MipmapMode { get; init; }
Property Value¶
NearestClamp¶
public static SamplerDescription NearestClamp { get; }
Property Value¶
Reduction¶
public SamplerReduction Reduction { get; init; }
Property Value¶
Shadow¶
public static SamplerDescription Shadow { get; }
Property Value¶
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