ShaderClassString Class
Namespace: Stride.ShadersAssembly: Stride.Shaders.dll
A shader class based on source code string, used for mixin.
[DataContract("ShaderClassString")]
public sealed class ShaderClassString : ShaderClassCode, IEquatable<ShaderClassString>
Name | Description | |
---|---|---|
Constructors | ||
ShaderClassString() | Initializes a new instance of the ShaderClassString class. |
|
ShaderClassString(String, String) | Initializes a new instance of the ShaderClassString class. |
|
ShaderClassString(String, String, Object[]) | Initializes a new instance of the ShaderClassString class. |
|
ShaderClassString(String, String, String[]) | Initializes a new instance of the ShaderClassString class. |
|
Properties | ||
ShaderSourceCode | Gets the source code of this shader class as string, XKSL syntax. |
|
Methods | ||
Clone() | ||
Equals(ShaderClassString) | ||
Equals(Object) | ||
GetHashCode() | ||
ToString() |
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
Type | Name | Description |
---|---|---|
System.String | className | Name of the class. |
System.String | shaderSourceCode |
ShaderClassString(String, String, Object[])
Initializes a new instance of the ShaderClassString class.
public ShaderClassString(string className, string shaderSourceCode, params object[] genericArguments)
Parameters
Type | Name | Description |
---|---|---|
System.String | className | Name of the class. |
System.String | shaderSourceCode | |
System.Object[] | genericArguments | The generic parameters. |
ShaderClassString(String, String, String[])
Initializes a new instance of the ShaderClassString class.
public ShaderClassString(string className, string shaderSourceCode, params string[] genericArguments)
Parameters
Type | Name | Description |
---|---|---|
System.String | className | Name of the class. |
System.String | shaderSourceCode | |
System.String[] | genericArguments | The generic parameters. |
Properties
ShaderSourceCode
Gets the source code of this shader class as string, XKSL syntax.
public string ShaderSourceCode { get; set; }
Property Value
Type | Description |
---|---|
System.String | The source code of the shader class. |
Methods
Clone()
public override object Clone()
Returns
Type | Description |
---|---|
System.Object |
Overrides
Equals(ShaderClassString)
public bool Equals(ShaderClassString shaderClassString)
Parameters
Type | Name | Description |
---|---|---|
ShaderClassString | shaderClassString |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetHashCode()
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
ToString()
public override string ToString()
Returns
Type | Description |
---|---|
System.String |