Class MaterialParams
The collection of material parameters.
Inheritance
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/Graphics/Materials/MaterialParams.h
Syntax
public class MaterialParams : public Array
Methods
Bind(MaterialParamsLink* link, MaterialParameter::BindMeta& meta)
Binds the parameters to the pipeline.
Declaration
public static void Bind(MaterialParamsLink* link, MaterialParameter::BindMeta& meta)
Parameters
MaterialParamsLink
link
The parameters binding link. Used to support per-parameter override. |
MaterialParameter::BindMeta
meta
The bind meta. |
Clone(MaterialParams& result)
Clones the parameters list.
Declaration
public void Clone(MaterialParams& result)
Parameters
MaterialParams
result
The result container. |
Dispose()
Releases the whole data.
Declaration
public void Dispose()
Find(const Guid& id)
Find(const StringView& name)
Get(const Guid& id)
Declaration
public MaterialParameter* Get(const Guid& id)
Parameters
Guid
id
|
Returns
MaterialParameter
|
Get(const StringView& name)
Declaration
public MaterialParameter* Get(const StringView& name)
Parameters
StringView
name
|
Returns
MaterialParameter
|
GetReferences(Array<Guid>& assets)
Gets the asset references (see Asset.GetReferences for more info).
Declaration
public void GetReferences(Array<Guid>& assets) const
Parameters
Array<Guid>
assets
The output assets. |
GetVersionHash()
Gets the parameters version hash. Every time the parameters are modified (loaded, edited, etc.) the hash changes. Can be used to sync instanced parameters collection.
Declaration
public int32 GetVersionHash() const
Returns
int32
|
HasContentLoaded()
Declaration
public bool HasContentLoaded() const
Returns
bool
|
Load(ReadStream* stream)
Loads material parameters from the stream.
Declaration
public bool Load(ReadStream* stream)
Parameters
ReadStream
stream
The stream with data. |
Returns
bool
True if cannot load parameters for the file. |
Save(BytesContainer& data, const Array<SerializedMaterialParam>* params)
Saves the material parameters to the bytes container.
Declaration
public static void Save(BytesContainer& data, const Array<SerializedMaterialParam>* params)
Parameters
BytesContainer
data
The output data. |
Array<SerializedMaterialParam>
params
The array of parameters. |
Save(WriteStream* stream)
Saves material parameters to the stream.
Declaration
public void Save(WriteStream* stream)
Parameters
WriteStream
stream
The stream with data. |
Save(WriteStream* stream, const Array<SerializedMaterialParam>* params)
Saves the material parameters to the stream.
Declaration
public static void Save(WriteStream* stream, const Array<SerializedMaterialParam>* params)
Parameters
WriteStream
stream
The stream with data. |
Array<SerializedMaterialParam>
params
The array of parameters. |