Class SamplerState
This class represent a sampler state.
Inheritance
SamplerState
      
      
      
      
      
  Inherited Members
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
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> |