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

Holds and manages an RHI DrawPacket for a specific mesh, and the resources that are needed to build and maintain it. More...

#include <MeshDrawPacket.h>

Classes

struct  ShaderData
 

Public Types

using ShaderList = AZStd::vector< ShaderData >
 

Public Member Functions

 MeshDrawPacket (ModelLod &modelLod, size_t modelLodMeshIndex, Data::Instance< Material > materialOverride, Data::Instance< ShaderResourceGroup > objectSrg, const MaterialModelUvOverrideMap &materialModelUvMap={})
 
 AZ_DEFAULT_COPY (MeshDrawPacket)
 
 AZ_DEFAULT_MOVE (MeshDrawPacket)
 
bool Update (const Scene &parentScene, bool forceUpdate=false)
 
const RHI::DrawPacketGetRHIDrawPacket () const
 
const RHI::ConstPtr< RHI::ConstantsLayoutGetRootConstantsLayout () const
 
void SetStencilRef (uint8_t stencilRef)
 
void SetSortKey (RHI::DrawItemSortKey sortKey)
 
bool SetShaderOption (const Name &shaderOptionName, RPI::ShaderOptionValue value)
 
bool UnsetShaderOption (const Name &shaderOptionName)
 
void ClearShaderOptions ()
 
void SetEnableDraw (RHI::DrawListTag drawListTag, bool enableDraw)
 
RHI::DrawListMask GetDrawListFilter ()
 
void ClearDrawListFilter ()
 
Data::Instance< MaterialGetMaterial () const
 
const ModelLod::MeshGetMesh () const
 
const ShaderList & GetActiveShaderList () const
 

Detailed Description

Holds and manages an RHI DrawPacket for a specific mesh, and the resources that are needed to build and maintain it.


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