Struct ShaderDescription
This struct represent all parameters requiered to create a new shader.
Implements
Inherited Members
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public struct ShaderDescription : IEquatable<ShaderDescription>
Constructors
ShaderDescription(ShaderStages, string, byte[])
Initializes a new instance of the ShaderDescription struct.
Declaration
public ShaderDescription(ShaderStages stage, string entryPoint, byte[] shaderBytes)
Parameters
Type | Name | Description |
---|---|---|
ShaderStages | stage | The shader stage. |
string | entryPoint | The entry point function. |
byte[] | shaderBytes | The shader code in bytes. |
Fields
EntryPoint
Gets the name of the entry point function.
Declaration
public readonly string EntryPoint
Field Value
Type | Description |
---|---|
string |
ShaderBytes
Gets the raw shader code.
Declaration
public readonly byte[] ShaderBytes
Field Value
Type | Description |
---|---|
byte[] |
Stage
Gets the shader stage.
Declaration
public readonly ShaderStages Stage
Field Value
Type | Description |
---|---|
ShaderStages |
Methods
Equals(ShaderDescription)
Determines whether the specified parameter is equal to this instance.
Declaration
public bool Equals(ShaderDescription other)
Parameters
Type | Name | Description |
---|---|---|
ShaderDescription | other | Other used to compare. |
Returns
Type | Description |
---|---|
bool |
|
Equals(object)
Determines whether the specified object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with this instance. |
Returns
Type | Description |
---|---|
bool |
|
Overrides
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. |
Overrides
Operators
operator ==(ShaderDescription, ShaderDescription)
Implements the operator ==.
Declaration
public static bool operator ==(ShaderDescription value1, ShaderDescription value2)
Parameters
Type | Name | Description |
---|---|---|
ShaderDescription | value1 | The value1. |
ShaderDescription | value2 | The value2. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |
operator !=(ShaderDescription, ShaderDescription)
Implements the operator ==.
Declaration
public static bool operator !=(ShaderDescription value1, ShaderDescription value2)
Parameters
Type | Name | Description |
---|---|---|
ShaderDescription | value1 | The value1. |
ShaderDescription | value2 | The value2. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |