Table of Contents

Class SamplerState

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

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

SamplerStateDescription

Methods

Destroy()

Disposes of object resources.

protected override void Destroy()

New(GraphicsDevice, SamplerStateDescription)

public static SamplerState New(GraphicsDevice graphicsDevice, SamplerStateDescription samplerStateDescription)

Parameters

graphicsDevice GraphicsDevice
samplerStateDescription SamplerStateDescription

Returns

SamplerState

NewFake(SamplerStateDescription)

Create a new fake sampler state for serialization.

public static SamplerState NewFake(SamplerStateDescription description)

Parameters

description SamplerStateDescription

The description of the sampler state

Returns

SamplerState

The fake sampler state

OnRecreate()

Called when graphics device has been recreated.

protected override bool OnRecreate()

Returns

bool

True if item transitioned to a Active state.