Search Results for

    Show / Hide Table of Contents

    Class SamplerState

    This class represent a sampler state.

    Inheritance
    object
    GraphicsResource
    SamplerState
    DX11SamplerState
    DX12SamplerState
    MTLSamplerState
    GLSamplerState
    VKSamplerState
    Implements
    ILoadable
    IDisposable
    IDependencyObject
    Inherited Members
    GraphicsResource.disposed
    GraphicsResource.Context
    GraphicsResource.NativePointer
    GraphicsResource.Disposed
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Common.Graphics
    Assembly: Evergine.Common.dll
    Syntax
    public abstract class SamplerState : GraphicsResource, ILoadable, IDisposable, IDependencyObject

    Constructors

    SamplerState(GraphicsContext, ref SamplerStateDescription)

    Initializes a new instance of the SamplerState class.

    Declaration
    protected SamplerState(GraphicsContext context, ref SamplerStateDescription description)
    Parameters
    Type Name Description
    GraphicsContext context

    The graphics context.

    SamplerStateDescription description

    The sampler state description.

    Fields

    Description

    The sampler state description.

    Declaration
    public readonly SamplerStateDescription Description
    Field Value
    Type Description
    SamplerStateDescription

    Properties

    Dependencies

    Gets the dependency list.

    Declaration
    public Lazy<List<IDependencyLink>> Dependencies { get; }
    Property Value
    Type Description
    Lazy<List<IDependencyLink>>

    Id

    Gets or sets the asset Id.

    Declaration
    public Guid Id { get; set; }
    Property Value
    Type Description
    Guid

    Name

    Gets or sets a string identifying this instance. Can be used in graphics debuggers tools.

    Declaration
    public abstract string Name { get; set; }
    Property Value
    Type Description
    string

    ReaderVersion

    Gets the reader version.

    Declaration
    public Version ReaderVersion { get; }
    Property Value
    Type Description
    Version

    Methods

    Dispose()

    Dispose this instance.

    Declaration
    public override void Dispose()
    Overrides
    GraphicsResource.Dispose()

    Invalidate(ILoadable)

    Invalidates this instance and raise the Invalidated event with the new ILoadable instance.

    Declaration
    public void Invalidate(ILoadable newInstance)
    Parameters
    Type Name Description
    ILoadable newInstance

    The new ILoadable instance.

    ReleaseUnusedMemory()

    Release unused memory.

    Declaration
    public void ReleaseUnusedMemory()

    Events

    Invalidated

    Occurs when this instance has been invalidated and all references must be reloaded.

    Declaration
    public event EventHandler<ILoadable> Invalidated
    Event Type
    Type Description
    EventHandler<ILoadable>

    Implements

    ILoadable
    IDisposable
    IDependencyObject

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX