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