Class ShaderClassString
A shader class based on source code string, used for mixin.
[DataContract("ShaderClassString")]
public sealed class ShaderClassString : ShaderClassCode, IEquatable<ShaderClassString>
- Inheritance
-
ShaderClassString
- Implements
- Inherited Members
Constructors
ShaderClassString()
Initializes a new instance of the ShaderClassString class.
public ShaderClassString()
ShaderClassString(string, string)
Initializes a new instance of the ShaderClassString class.
public ShaderClassString(string className, string shaderSourceCode)
Parameters
ShaderClassString(string, string, params object[])
Initializes a new instance of the ShaderClassString class.
public ShaderClassString(string className, string shaderSourceCode, params object[] genericArguments)
Parameters
classNamestringName of the class.
shaderSourceCodestringgenericArgumentsobject[]The generic parameters.
ShaderClassString(string, string, params string[])
Initializes a new instance of the ShaderClassString class.
public ShaderClassString(string className, string shaderSourceCode, params string[] genericArguments)
Parameters
classNamestringName of the class.
shaderSourceCodestringgenericArgumentsstring[]The generic parameters.
Properties
ShaderSourceCode
Gets the source code of this shader class as string, XKSL syntax.
public string ShaderSourceCode { get; set; }
Property Value
- string
The source code of the shader class.
Methods
Clone()
Deep clones this instance.
public override object Clone()
Returns
- object
A new instance.
Equals(ShaderClassString)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ShaderClassString shaderClassString)
Parameters
shaderClassStringShaderClassString
Returns
Equals(object)
Determines whether the specified object is equal to this instance.
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.