ShaderSource Class
Namespace: Stride.ShadersAssembly: Stride.Shaders.dll
A shader source.
System.Object →
ShaderSource
Derived from ShaderSource: ShaderArraySource ShaderClassCode ShaderMixinGeneratorSource ShaderMixinSource
[DataContract("ShaderSource")]
public abstract class ShaderSource
Name | Description | |
---|---|---|
Properties | ||
Discard | Gets or sets a value indicating whether this ShaderSource is a discard shader after it has been mixed. |
|
Methods | ||
Clone() | Deep clones this instance. |
|
Equals(Object) | Determines whether the specified System.Object is equal to this instance. |
|
GetHashCode() |
Properties
Discard
Gets or sets a value indicating whether this ShaderSource is a discard shader after it has been mixed.
public bool Discard { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
Clone()
Deep clones this instance.
public abstract object Clone()
Returns
Type | Description |
---|---|
System.Object | A new instance. |
Equals(Object)
Determines whether the specified System.Object is equal to this instance.
public abstract override bool Equals(object against)
Parameters
Type | Name | Description |
---|---|---|
System.Object | against | The System.Object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
public abstract override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()