Class ShaderMixinSource
A mixin performing a combination of Shader
[DataContract("ShaderMixinSource")]
public sealed class ShaderMixinSource : ShaderSource, IEquatable<ShaderMixinSource>
- Inheritance
-
Shader
Mixin Source
- Implements
- Inherited Members
Constructors
ShaderMixinSource()
Initializes a new instance of the Shader
Properties
Compositions
Gets or sets the compositions.
Property Value
- Sorted
List <string, ShaderSource > The compositions.
Macros
Gets or sets the macros.
Property Value
- List<Shader
Macro > The macros.
Mixins
Gets or sets the mixins.
Property Value
- List<Shader
Class >Code The mixins.
Name
Gets or sets the name of the sdfx effect linked to this node.
Property Value
- string
The name of the sdfx effect.
Parent
Property Value
Methods
AddComposition(string, ShaderSource)
Adds a composition to this mixin.
Parameters
name
stringThe name.
shaderSource
ShaderSource The shader source.
AddCompositionToArray(string, ShaderSource)
Adds a composition to this mixin.
Parameters
name
stringThe name.
shaderSourceElement
ShaderSource The shader source element.
Returns
- int
Returns the index of the composition in the array.
AddMacro(string, object)
Adds a macro to this mixin.
Parameters
Clone()
Deep clones this instance.
Returns
- object
A new instance.
CloneFrom(ShaderMixinSource)
Clones from the specified Shader
Parameters
parent
ShaderMixin Source The parent mixin to clone from.
Exceptions
- Argument
Null Exception parent
DeepCloneFrom(ShaderMixinSource)
Clones from the specified Shader
Parameters
parent
ShaderMixin Source The parent mixin to clone from.
Exceptions
- Argument
Null Exception parent
Equals(ShaderMixinSource)
Indicates whether the current object is equal to another object of the same type.
Parameters
other
ShaderMixin Source An object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to this instance.
Parameters
Returns
GetHashCode()
Serves as the default hash function.
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
Returns
- string
A string that represents the current object.