SamplerState Class
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
Describes a sampler state used for texture sampling.
                 Derived from SamplerState: 
              
              
              
public class SamplerState : GraphicsResourceBase, IDisposable, IComponent, IReferencable, ICollectorHolder
              | Name | Description | |
|---|---|---|
| Constructors | ||
| SamplerState() | ||
| Fields | ||
| Description | Gets the sampler state description.  | 
                          |
| Methods | ||
| Destroy() | ||
| New(GraphicsDevice, SamplerStateDescription) | ||
| NewFake(SamplerStateDescription) | Create a new fake sampler state for serialization.  | 
                          |
| OnRecreate() | Called when graphics device has been recreated.  | 
                          |
Constructors
SamplerState()
protected SamplerState()
              Fields
Description
Gets the sampler state description.
public readonly SamplerStateDescription Description
              Field Value
| Type | Description | 
|---|---|
| SamplerStateDescription | 
Methods
Destroy()
protected override void Destroy()
              Overrides
New(GraphicsDevice, SamplerStateDescription)
public static SamplerState New(GraphicsDevice graphicsDevice, SamplerStateDescription samplerStateDescription)
              Parameters
| Type | Name | Description | 
|---|---|---|
| GraphicsDevice | graphicsDevice | |
| SamplerStateDescription | samplerStateDescription | 
Returns
| Type | Description | 
|---|---|
| SamplerState | 
NewFake(SamplerStateDescription)
Create a new fake sampler state for serialization.
public static SamplerState NewFake(SamplerStateDescription description)
              Parameters
| Type | Name | Description | 
|---|---|---|
| SamplerStateDescription | description | The description of the sampler state  | 
                  
Returns
| Type | Description | 
|---|---|
| SamplerState | The fake sampler state  | 
                  
OnRecreate()
Called when graphics device has been recreated.
protected override bool OnRecreate()
              Returns
| Type | Description | 
|---|---|
| System.Boolean | True if item transitioned to a Active state.  |