Struct MaterialParameter
This struct represent a material parameter.
Inherited Members
Namespace: Evergine.Framework.Assets.AssetParts
Assembly: Evergine.Framework.dll
Syntax
public struct MaterialParameter
Constructors
MaterialParameter(string, string, byte[])
Initializes a new instance of the MaterialParameter struct.
Declaration
public MaterialParameter(string type, string name, byte[] value)
Parameters
Type | Name | Description |
---|---|---|
string | type | Material parameter string type. |
string | name | Material parameter name. |
byte[] | value | Parameter value. |
Fields
Name
The parameter name.
Declaration
public string Name
Field Value
Type | Description |
---|---|
string |
Type
The material parameter type.
Declaration
public string Type
Field Value
Type | Description |
---|---|
string |
ValueByteArray
The value parameter as byte array.
Declaration
public byte[] ValueByteArray
Field Value
Type | Description |
---|---|
byte[] |
Methods
Read(BinaryReader)
Read this asset part.
Declaration
public static MaterialParameter Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
Returns
Type | Description |
---|---|
MaterialParameter | The loaded asset part. |
ReadType<T>(string, T)
Read a material parameter.
Declaration
public static MaterialParameter ReadType<T>(string name, T value)
Parameters
Type | Name | Description |
---|---|---|
string | name | The parameter name. |
T | value | The parameter value. |
Returns
Type | Description |
---|---|
MaterialParameter | The material parameter instance. |
Type Parameters
Name | Description |
---|---|
T | The parameter type. |
Write(BinaryWriter)
Write this asset.
Declaration
public void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The binary writer. |