Class SamplerState
This class represents a sampler state.
Inheritance
SamplerState
Inherited Members
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public abstract class SamplerState : GraphicsResource, ILoadable, 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
Describes the sampler state.
Declaration
public readonly SamplerStateDescription Description
Field Value
| Type | Description |
|---|---|
| SamplerStateDescription |
Properties
Dependencies
Gets the list of dependencies.
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. It can be used in graphics debugger tools.
Declaration
public abstract string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ReaderVersion
Gets the reader's version.
Declaration
public Version ReaderVersion { get; }
Property Value
| Type | Description |
|---|---|
| Version |
Methods
Destroy()
Destroy graphics native resources.
Declaration
protected override void Destroy()
Overrides
Invalidate(ILoadable)
Invalidates this instance and raises 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()
Releases unused memory.
Declaration
public void ReleaseUnusedMemory()
Events
Invalidated
Occurs when this instance is invalidated and all references must be reloaded.
Declaration
public event EventHandler<ILoadable> Invalidated
Event Type
| Type | Description |
|---|---|
| EventHandler<ILoadable> |