◆ FindMaterialPropertyIndex()
MaterialPropertyIndex AZ::RPI::MaterialFunctorSourceData::RuntimeContext::FindMaterialPropertyIndex |
( |
Name |
propertyId | ) |
const |
Find a property's index by its name. It will report error and return a Null index if it fails. This will also automatically apply the MaterialNameContext.
◆ GetNameContext()
const MaterialNameContext * AZ::RPI::MaterialFunctorSourceData::RuntimeContext::GetNameContext |
( |
| ) |
const |
|
inline |
Returns the name context for the functor. It acts like a namespace for any names that the MaterialFunctorSourceData might reference. The namespace is automatically applied by the other relevant functions of this RuntimeContext class. Note that by default the MaterialNameContext is not saved as part of the final MaterialFunctor class (most CreateFunctor() implementations should convert names to indexes anyway) but CreateFunctor() can copy it to the created MaterialFunctor for use at runtime if needed.
The documentation for this struct was generated from the following file:
- Gems/Atom/RPI/Code/Include/Atom/RPI.Edit/Material/MaterialFunctorSourceData.h