Open 3D Engine Atom Gem API Reference 26.05.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::Render::MeshHandleDescriptor Struct Reference

Settings to apply to a mesh handle when acquiring it for the first time. More...

#include <MeshFeatureProcessorInterface.h>

Public Types

using RequiresCloneCallback = AZStd::function< bool(const Data::Asset< RPI::ModelAsset > &modelAsset)>
 
using ModelChangedEvent = Event< const Data::Instance< RPI::Model > & >
 
using ObjectSrgCreatedEvent = Event< const Data::Instance< RPI::ShaderResourceGroup > & >
 

Public Member Functions

 MeshHandleDescriptor (const Data::Asset< RPI::ModelAsset > &modelAsset)
 
 MeshHandleDescriptor (const Data::Asset< RPI::ModelAsset > &modelAsset, const CustomMaterialMap &customMaterials)
 
 MeshHandleDescriptor (const Data::Asset< RPI::ModelAsset > &modelAsset, const Data::Instance< RPI::Material > &material)
 

Public Attributes

AZ::EntityId m_entityId { AZ::EntityId::InvalidEntityId }
 
Data::Asset< RPI::ModelAssetm_modelAsset
 
Data::Asset< RPI::ModelAssetm_productModelAsset
 
bool m_isRayTracingEnabled = true
 
bool m_useForwardPassIblSpecular = false
 
bool m_isAlwaysDynamic = false
 
bool m_excludeFromReflectionCubeMaps = false
 
bool m_isSkinnedMesh = false
 
bool m_supportRayIntersection = false
 
CustomMaterialMap m_customMaterials
 
RequiresCloneCallback m_requiresCloneCallback {}
 
ModelChangedEvent::Handler m_modelChangedEventHandler { [](const Data::Instance<RPI::Model>&){} }
 Connects to an event that gets triggered whenever the model is changed, loaded, or reloaded.
 
ObjectSrgCreatedEvent::Handler m_objectSrgCreatedHandler { [](const Data::Instance<RPI::ShaderResourceGroup>&){} }
 Connects to an event that triggers whenever the ObjectSrg is created.
 

Detailed Description

Settings to apply to a mesh handle when acquiring it for the first time.


The documentation for this struct was generated from the following file: