This topic has not yet been rated - Rate this topic

GraphicsDevice.SamplerStates Property

Retrieves a collection of SamplerState objects for the current GraphicsDevice.

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

public SamplerStateCollection SamplerStates { get; }

Property Value

The sample states of this GraphicsDevice.

This method returns the last sampler state that was set for the GraphicsDevice, or the default GraphicsDevice sampler state, if not previously set. Programmable shaders reference textures using the sampler number, which is set as the index of a GraphicsDevice.Textures.

Xbox 360, Windows XP SP2, Windows Vista

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.