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
className
stringName of the class.
shaderSourceCode
stringgenericArguments
object[]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
className
stringName of the class.
shaderSourceCode
stringgenericArguments
string[]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
shaderClassString
ShaderClassString
Returns
Equals(object)
Determines whether the specified object is equal to this instance.
public override bool Equals(object obj)
Parameters
obj
object
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.