ShaderMacro Struct
Namespace: Stride.ShadersAssembly: Stride.Shaders.dll
Preprocessor macro.
[DataContract]
public struct ShaderMacro : IEquatable<ShaderMacro>
Name | Description | |
---|---|---|
Constructors | ||
ShaderMacro(String, Object) | Initializes a new instance of the ShaderMacro struct. |
|
Fields | ||
Definition | Value of the macro to set. |
|
Name | Name of the macro to set. |
|
Methods | ||
Equals(ShaderMacro) | Indicates whether the current object is equal to another object of the same type. |
|
Equals(Object) | Determines whether the specified System.Object is equal to this instance. |
|
GetHashCode() | Returns a hash code for this instance. |
Constructors
ShaderMacro(String, Object)
Initializes a new instance of the ShaderMacro struct.
public ShaderMacro(string name, object definition)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Object | definition | The definition. |
Fields
Definition
Value of the macro to set.
public string Definition
Field Value
Type | Description |
---|---|
System.String |
Name
Name of the macro to set.
public string Name
Field Value
Type | Description |
---|---|
System.String |
Methods
Equals(ShaderMacro)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ShaderMacro other)
Parameters
Type | Name | Description |
---|---|---|
ShaderMacro | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the current object is equal to the |
Equals(Object)
Determines whether the specified System.Object is equal to this instance.
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |