MaterialStreamDescriptor Class
Namespace: Stride.Rendering.MaterialsAssembly: Stride.Rendering.dll
A Material Stream.
System.Object →
MaterialStreamDescriptor
Derived from MaterialStreamDescriptor:
public class MaterialStreamDescriptor
| Name | Description | |
|---|---|---|
| Constructors | ||
| MaterialStreamDescriptor(String, String, ShaderSource) | Initializes a new instance of the MaterialStreamDescriptor class. |
|
| MaterialStreamDescriptor(String, String, Type, Boolean) | Initializes a new instance of the MaterialStreamDescriptor class. |
|
| Properties | ||
| Filter | Gets the filter to modify the shader. |
|
| Name | Gets the name. |
|
| Stream | Gets the stream name. |
|
Constructors
MaterialStreamDescriptor(String, String, ShaderSource)
Initializes a new instance of the MaterialStreamDescriptor class.
public MaterialStreamDescriptor(string name, string stream, ShaderSource filter = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name. |
| System.String | stream | The stream. |
| ShaderSource | filter | The filter. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | name or stream |
MaterialStreamDescriptor(String, String, Type, Boolean)
Initializes a new instance of the MaterialStreamDescriptor class.
public MaterialStreamDescriptor(string name, string stream, Type colorType, bool remapSigned = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name. |
| System.String | stream | The stream. |
| System.Type | colorType | Type of the color. |
| System.Boolean | remapSigned |
Properties
Filter
Gets the filter to modify the shader.
public ShaderSource Filter { get; }
Property Value
| Type | Description |
|---|---|
| ShaderSource | The filter. |
Name
Gets the name.
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String | The name. |
Stream
Gets the stream name.
public string Stream { get; }
Property Value
| Type | Description |
|---|---|
| System.String | The stream. |