Search Results for

    Show / Hide Table of Contents

    Class MaterialParams

    The collection of material parameters.

    Inheritance
    Array
    MaterialParams
    Inherited Members
    Array::Add(const T& item)
    Array::Add(T&& item)
    Array::Add(const T* items, const int32 count)
    Array::Add(const Array<Other, OtherAllocationType>& other)
    Array::AddDefault(const int32 count=1)
    Array::AddOne()
    Array::AddUninitialized(const int32 count=1)
    Array::AddUnique(const T& item)
    Array::AddZeroed(const int32 count=1)
    MaterialParams
    Array::Array()
    Array::Array(const int32 capacity)
    Array::Array(const T* data, const int32 length)
    Array::Array(std::initializer_list<T> initList)
    Array::Array(const Array& other)
    Array::Array(const Array<Other, OtherAllocationType>& other)
    Array::Array(Array&& other)
    Array::At(const int32 index)
    Array::Begin()
    Array::begin()
    Array::Capacity()
    Array::Clear()
    Array::ClearDelete()
    Array::Contains(const Other& item)
    Array::Count()
    Array::Dequeue()
    Array::end()
    Array::End()
    Array::Enqueue(const T& item)
    Array::Enqueue(T&& item)
    Array::EnsureCapacity(const int32 minCapacity, const bool preserveContents=true)
    Array::Find(const ComparableType& item, int32& index)
    Array::Find(const ComparableType& item)
    Array::FindLast(const ComparableType& item, int& index)
    Array::FindLast(const ComparableType& item)
    Array::First()
    Array::Get()
    Array::HasItems()
    Array::Insert(const int32 index, const T& item)
    Array::Insert(const int32 index, T&& item)
    Array::Insert(const int32 index)
    Array::IsEmpty()
    Array::IsValidIndex(const int32 index)
    MaterialParams
    Array::Last()
    Array::operator!=(const Array<Other, OtherAllocationType>& other)
    Array::operator=(std::initializer_list<T> initList)
    Array::operator=(const Array& other)
    Array::operator=(Array&& other)
    Array::operator==(const Array<Other, OtherAllocationType>& other)
    Array::operator[](const int32 index)
    Array::Peek()
    Array::Pop()
    Array::Push(const T& item)
    Array::Remove(const T& item)
    Array::RemoveAll(const T& item)
    Array::RemoveAllKeepOrder(const T& item)
    Array::RemoveAt(const int32 index)
    Array::RemoveAtKeepOrder(const int32 index)
    Array::RemoveKeepOrder(const T& item)
    Array::RemoveLast()
    Array::Resize(const int32 size, const bool preserveContents=true)
    Array::Reverse()
    Array::Set(const T* data, const int32 count)
    Array::SetAll(const T& value)
    Array::SetCapacity(const int32 capacity, const bool preserveContents=true)
    Array::Swap(Array& other)
    Array::~Array()
    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)

    Declaration
    public int32 Find(const Guid& id)
    Parameters
    Guid id

    Returns
    int32

    Find(const StringView& name)

    Declaration
    public int32 Find(const StringView& name)
    Parameters
    StringView name

    Returns
    int32

    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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat