Class Shader
This class represent a single shader program.
Implements
Inherited Members
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public abstract class Shader : GraphicsResource, IDisposable
Constructors
Shader(GraphicsContext, ref ShaderDescription)
Initializes a new instance of the Shader class.
Declaration
protected Shader(GraphicsContext context, ref ShaderDescription description)
Parameters
Type | Name | Description |
---|---|---|
GraphicsContext | context | The graphics context. |
ShaderDescription | description | The shader description. |
Fields
Description
Gets the shader description.
Declaration
public readonly ShaderDescription Description
Field Value
Type | Description |
---|---|
ShaderDescription |
Properties
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 |
Methods
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |