Export (0) Print
Expand All

SamplerState Class

Contains sampler state, which determines how to sample texture data.

System.Object
  Microsoft.Xna.Framework.Graphics.GraphicsResource
    Microsoft.Xna.Framework.Graphics.SamplerState

Namespace:  Microsoft.Xna.Framework.Graphics
Assembly:  Microsoft.Xna.Framework.Graphics (in Microsoft.Xna.Framework.Graphics.dll)

public class SamplerState : GraphicsResource

The SamplerState type exposes the following members.

  NameDescription
Public methodSamplerStateInitializes a new instance of the SamplerState class.
Top

  NameDescription
Public propertyAddressUGets or sets the texture-address mode for the u-coordinate.
Public propertyAddressVGets or sets the texture-address mode for the v-coordinate.
Public propertyFilterGets or sets the type of filtering during sampling.
Public propertyIsDisposedGets a value that indicates whether the object is disposed. (Inherited from GraphicsResource.)
Public propertyMaxAnisotropyGets or sets the maximum anisotropy. The default value is 0.
Public propertyMaxMipLevelGets or sets the level of detail (LOD) index of the largest map to use.
Public propertyMipMapLevelOfDetailBiasGets or sets the mipmap LOD bias. The default value is 0.
Top

  NameDescription
Public methodDispose()Immediately releases the unmanaged resources used by this object. (Inherited from GraphicsResource.)
Protected methodDispose(Boolean)Immediately releases the unmanaged resources used by this object. (Inherited from GraphicsResource.)
Protected methodFinalizeAllows this object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object. (Inherited from GraphicsResource.)
Top

  NameDescription
Public fieldStatic memberAnisotropicClampContains default state for anisotropic filtering and texture coordinate clamping.
Public fieldStatic memberAnisotropicWrapContains default state for anisotropic filtering and texture coordinate wrapping.
Public fieldStatic memberLinearClampContains default state for linear filtering and texture coordinate clamping.
Public fieldStatic memberLinearWrapContains default state for linear filtering and texture coordinate wrapping.
Public fieldStatic memberPointClampContains default state for point filtering and texture coordinate clamping.
Public fieldStatic memberPointWrapContains default state for point filtering and texture coordinate wrapping.
Top

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft