Class ShaderClassSource
A shader class based on .sdsl file, used for mixin.
[DataContract("ShaderClassSource")]
public sealed class ShaderClassSource : ShaderClassCode, IEquatable<ShaderClassSource>
- Inheritance
-
ShaderClassSource
- Implements
- Inherited Members
Constructors
ShaderClassSource()
Initializes a new instance of the ShaderClassSource class.
public ShaderClassSource()
ShaderClassSource(string)
Initializes a new instance of the ShaderClassSource class.
public ShaderClassSource(string className)
Parameters
className
stringName of the class.
ShaderClassSource(string, params object[])
Initializes a new instance of the ShaderClassSource class.
public ShaderClassSource(string className, params object[] genericArguments)
Parameters
ShaderClassSource(string, params string[])
Initializes a new instance of the ShaderClassSource class.
public ShaderClassSource(string className, params string[] genericArguments)
Parameters
Methods
Clone()
Deep clones this instance.
public override object Clone()
Returns
- object
A new instance.
Equals(ShaderClassSource)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ShaderClassSource shaderClassSource)
Parameters
shaderClassSource
ShaderClassSource
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.
Operators
implicit operator ShaderClassSource(string)
Performs an implicit conversion from string to ShaderClassSource.
public static implicit operator ShaderClassSource(string className)
Parameters
className
stringName of the class.
Returns
- ShaderClassSource
The result of the conversion.