ShaderClassCode Class
Namespace: Stride.ShadersAssembly: Stride.Shaders.dll
A common base class for shader classes with source code.
Derived from ShaderClassCode: ShaderClassSource ShaderClassString
[DataContract("ShaderClassCode")]
public abstract class ShaderClassCode : ShaderSource
| Name | Description | |
|---|---|---|
| Properties | ||
| ClassName | Gets the name of the class. |
|
| GenericArguments | Gets the generic parameters. |
|
| GenericParametersArguments | ||
| Methods | ||
| ToClassName() | Returns a class name as a System.String that represents this instance. |
|
| ToString() | ||
Properties
ClassName
Gets the name of the class.
[DataMember(10)]
public string ClassName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The name of the class. |
GenericArguments
Gets the generic parameters.
[DataStyle(DataStyle.Compact)]
[DataMember(20)]
public string[] GenericArguments { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String[] | The generic parameters. |
GenericParametersArguments
[DataMember(30)]
public Dictionary<string, string> GenericParametersArguments { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, System.String> |
Methods
ToClassName()
Returns a class name as a System.String that represents this instance.
public string ToClassName()
Returns
| Type | Description |
|---|---|
| System.String | A class name as a System.String that represents this instance. |
ToString()
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()