Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    SamplerState Class

    Namespace: Stride.Graphics
    Assembly: Stride.Graphics.dll

    Describes a sampler state used for texture sampling.

    System.Object → DisposeBase → ComponentBase → GraphicsResourceBase → SamplerState
    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.

    | Improve this Doc View Source

    Constructors


    SamplerState()

    protected SamplerState()
    | Improve this Doc View Source

    Fields


    Description

    Gets the sampler state description.

    public readonly SamplerStateDescription Description
    Field Value
    Type Description
    SamplerStateDescription
    | Improve this Doc View Source

    Methods


    Destroy()

    protected override void Destroy()
    Overrides
    GraphicsResourceBase.Destroy()

    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.

    Overrides
    GraphicsResourceBase.OnRecreate()

    Inherited Members

    GraphicsResourceBase.NativeResource
    GraphicsResourceBase.NativeDeviceChild
    GraphicsResourceBase.OnDestroyed()
    GraphicsResourceBase.NativeDevice
    GraphicsResourceBase.Reload
    GraphicsResourceBase.GraphicsDevice
    GraphicsResourceBase.Destroyed
    GraphicsResourceBase.OnPause()
    GraphicsResourceBase.OnResume()
    ComponentBase.Tags
    ComponentBase.Name
    ComponentBase.ICollectorHolder.Collector
    ComponentBase.OnNameChanged()
    ComponentBase.ToString()
    DisposeBase.Dispose()
    DisposeBase.IsDisposed
    DisposeBase.IReferencable.ReferenceCount
    DisposeBase.IReferencable.AddReference()
    DisposeBase.IReferencable.Release()
    DisposeBase.OnAddReference()
    DisposeBase.OnReleaseReference()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation