Class SamplerState
Describes a sampler state used for texture sampling.
public class SamplerState : GraphicsResourceBase, IDisposable, IComponent, IReferencable, ICollectorHolder- Inheritance
- 
      objectSamplerState
- Implements
- Inherited Members
- Extension Methods
Constructors
SamplerState()
protected SamplerState()Fields
Description
Gets the sampler state description.
public readonly SamplerStateDescription DescriptionField Value
Methods
Destroy()
Disposes of object resources.
protected override void Destroy()New(GraphicsDevice, SamplerStateDescription)
public static SamplerState New(GraphicsDevice graphicsDevice, SamplerStateDescription samplerStateDescription)Parameters
- graphicsDeviceGraphicsDevice
- samplerStateDescriptionSamplerStateDescription
Returns
NewFake(SamplerStateDescription)
Create a new fake sampler state for serialization.
public static SamplerState NewFake(SamplerStateDescription description)Parameters
- descriptionSamplerStateDescription
- The description of the sampler state 
Returns
- SamplerState
- The fake sampler state 
OnRecreate()
Called when graphics device has been recreated.
protected override bool OnRecreate()