ShaderClassSource Class
Namespace: Stride.ShadersAssembly: Stride.Shaders.dll
A shader class based on .sdsl file, used for mixin.
[DataContract("ShaderClassSource")]
public sealed class ShaderClassSource : ShaderClassCode, IEquatable<ShaderClassSource>
Name | Description | |
---|---|---|
Constructors | ||
ShaderClassSource() | Initializes a new instance of the ShaderClassSource class. |
|
ShaderClassSource(String) | Initializes a new instance of the ShaderClassSource class. |
|
ShaderClassSource(String, Object[]) | Initializes a new instance of the ShaderClassSource class. |
|
ShaderClassSource(String, String[]) | Initializes a new instance of the ShaderClassSource class. |
|
Methods | ||
Clone() | ||
Equals(ShaderClassSource) | ||
Equals(Object) | ||
GetHashCode() | ||
ToString() | ||
Operators | ||
Implicit(String to ShaderClassSource) | Performs an implicit conversion from System.String to ShaderClassSource. |
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
Type | Name | Description |
---|---|---|
System.String | className | Name of the class. |
ShaderClassSource(String, Object[])
Initializes a new instance of the ShaderClassSource class.
public ShaderClassSource(string className, params object[] genericArguments)
Parameters
Type | Name | Description |
---|---|---|
System.String | className | Name of the class. |
System.Object[] | genericArguments | The generic parameters. |
ShaderClassSource(String, String[])
Initializes a new instance of the ShaderClassSource class.
public ShaderClassSource(string className, params string[] genericArguments)
Parameters
Type | Name | Description |
---|---|---|
System.String | className | Name of the class. |
System.String[] | genericArguments | The generic parameters. |
Methods
Clone()
public override object Clone()
Returns
Type | Description |
---|---|
System.Object |
Overrides
Equals(ShaderClassSource)
public bool Equals(ShaderClassSource shaderClassSource)
Parameters
Type | Name | Description |
---|---|---|
ShaderClassSource | shaderClassSource |
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 |
Overrides
| Improve this Doc View SourceOperators
Implicit(String to ShaderClassSource)
Performs an implicit conversion from System.String to ShaderClassSource.
public static implicit operator ShaderClassSource(string className)
Parameters
Type | Name | Description |
---|---|---|
System.String | className | Name of the class. |
Returns
Type | Description |
---|---|
ShaderClassSource | The result of the conversion. |