Table of Contents

Class SamplerState

Namespace
Microsoft.Xna.Framework.Graphics
Assembly
MonoGame.Framework.dll
public class SamplerState : GraphicsResource, IDisposable
Inheritance
SamplerState
Implements
Inherited Members

Constructors

SamplerState()

public SamplerState()

Fields

AnisotropicClamp

public static readonly SamplerState AnisotropicClamp

Field Value

SamplerState

AnisotropicWrap

public static readonly SamplerState AnisotropicWrap

Field Value

SamplerState

LinearClamp

public static readonly SamplerState LinearClamp

Field Value

SamplerState

LinearWrap

public static readonly SamplerState LinearWrap

Field Value

SamplerState

PointClamp

public static readonly SamplerState PointClamp

Field Value

SamplerState

PointWrap

public static readonly SamplerState PointWrap

Field Value

SamplerState

Properties

AddressU

public TextureAddressMode AddressU { get; set; }

Property Value

TextureAddressMode

AddressV

public TextureAddressMode AddressV { get; set; }

Property Value

TextureAddressMode

AddressW

public TextureAddressMode AddressW { get; set; }

Property Value

TextureAddressMode

BorderColor

public Color BorderColor { get; set; }

Property Value

Color

ComparisonFunction

When using comparison sampling, also set FilterMode to Comparison.

public CompareFunction ComparisonFunction { get; set; }

Property Value

CompareFunction

Filter

public TextureFilter Filter { get; set; }

Property Value

TextureFilter

FilterMode

public TextureFilterMode FilterMode { get; set; }

Property Value

TextureFilterMode

MaxAnisotropy

public int MaxAnisotropy { get; set; }

Property Value

int

MaxMipLevel

public int MaxMipLevel { get; set; }

Property Value

int

MipMapLevelOfDetailBias

public float MipMapLevelOfDetailBias { get; set; }

Property Value

float

Methods

Dispose(bool)

The method that derived classes should override to implement disposing of managed and native resources.

protected override void Dispose(bool disposing)

Parameters

disposing bool

True if managed objects should be disposed.

Remarks

Native resources should always be released regardless of the value of the disposing parameter.