Class ShaderStateDescription
Shader state description.
Inheritance
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public abstract class ShaderStateDescription
Fields
bufferParametersBinding
Uniform parameter bindings. Used in WebGL1 and OpenGL ES 2.0.
Declaration
public Dictionary<string, BufferParameterBinding> bufferParametersBinding
Field Value
Type | Description |
---|---|
Dictionary<string, BufferParameterBinding> |
constantBuffersBindings
ConstantBuffer bindings. Used in OpenGL 4.1 or later and OpenGL ES 3.0 or later.
Declaration
public List<(string name, uint slot)> constantBuffersBindings
Field Value
Type | Description |
---|---|
List<(string name, uint slot)> |
texturesBindings
Texture bindings. Used in OpenGL 4.1 or earlier and OpenGLES 3.0 or earlier.
Declaration
public List<(string name, uint slot)> texturesBindings
Field Value
Type | Description |
---|---|
List<(string name, uint slot)> |
Methods
Equals(ShaderStateDescription)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(ShaderStateDescription other)
Parameters
Type | Name | Description |
---|---|---|
ShaderStateDescription | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
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()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
Operators
operator ==(ShaderStateDescription, ShaderStateDescription)
Implements the operator ==.
Declaration
public static bool operator ==(ShaderStateDescription value1, ShaderStateDescription value2)
Parameters
Type | Name | Description |
---|---|---|
ShaderStateDescription | value1 | The first value. |
ShaderStateDescription | value2 | The second value. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |
operator !=(ShaderStateDescription, ShaderStateDescription)
Implements the operator ==.
Declaration
public static bool operator !=(ShaderStateDescription value1, ShaderStateDescription value2)
Parameters
Type | Name | Description |
---|---|---|
ShaderStateDescription | value1 | The first value. |
ShaderStateDescription | value2 | The second value. |
Returns
Type | Description |
---|---|
bool | The result of the operation. |