Skip to content

Struct SamplerData

Namespace: Apogee.Content
Assembly: Apogee.Content.dll

How a texture is sampled: glTF's sampler, reduced to what the renderer has.

public readonly record struct SamplerData : IEquatable<SamplerData>

Implements

IEquatable<SamplerData>

Inherited Members

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

Constructors

SamplerData(TextureFilter, bool, TextureWrap, TextureWrap)

How a texture is sampled: glTF's sampler, reduced to what the renderer has.

public SamplerData(TextureFilter Filter, bool Mipmaps, TextureWrap WrapU, TextureWrap WrapV)

Parameters

Filter TextureFilter

Mipmaps bool

WrapU TextureWrap

WrapV TextureWrap

Properties

Default

public static SamplerData Default { get; }

Property Value

SamplerData

Filter

public TextureFilter Filter { get; init; }

Property Value

TextureFilter

Mipmaps

public bool Mipmaps { get; init; }

Property Value

bool

WrapU

public TextureWrap WrapU { get; init; }

Property Value

TextureWrap

WrapV

public TextureWrap WrapV { get; init; }

Property Value

TextureWrap