Share via


SamplerState Members

The following tables list the members exposed by the SamplerState type.

Public Constructors

Name Description
Public Method SamplerState Initializes a new instance of the sampler state class.

Public Fields

Name Description
Public Field Static AnisotropicClamp Contains default state for anisotropic filtering and texture coordinate clamping.
Public Field Static AnisotropicWrap Contains default state for anisotropic filtering and texture coordinate wrapping.
Public Field Static LinearClamp Contains default state for linear filtering and texture coordinate clamping.
Public Field Static LinearWrap Contains default state for linear filtering and texture coordinate wrapping.
Public Field Static PointClamp Contains default state for point filtering and texture coordinate clamping.
Public Field Static PointWrap Contains default state for point filtering and texture coordinate wrapping.

Public Properties

Name Description
Public Property AddressU Gets or sets the texture-address mode for the u-coordinate.
Public Property AddressV Gets or sets the texture-address mode for the v-coordinate.
Public Property AddressW Gets or sets the texture-address mode for the w-coordinate.
Public Property Filter Gets or sets the type of filtering during sampling.
Public Property GraphicsDevice (Inherited from GraphicsResource.)
Public Property IsDisposed (Inherited from GraphicsResource.)
Public Property MaxAnisotropy Gets or sets the maximum anisotropy. The default value is 4.
Public Property MaxMipLevel Gets or sets the level of detail (LOD) index of the largest map to use.
Public Property MipMapLevelOfDetailBias Gets or sets the mipmap LOD bias. The default value is 0. A negative value indicates a larger mipmap level; a positive value indicates a smaller mipmap level.
Public Property Name (Inherited from GraphicsResource.)
Public Property Tag (Inherited from GraphicsResource.)

Public Methods

Name Description
Public Method Dispose Overloaded. Immediately releases the unmanaged resources used by this object.
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method ToString (Inherited from GraphicsResource.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from GraphicsResource.)
Protected Method MemberwiseClone (Inherited from Object.)

Public Events

Name Description
Public Event Disposing (Inherited from GraphicsResource.)

See Also

Reference

SamplerState Class
Microsoft.Xna.Framework.Graphics Namespace