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::DrawPacket * | GetRHIDrawPacket () const |
const RHI::ConstPtr< RHI::ConstantsLayout > | GetRootConstantsLayout () 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< Material > | GetMaterial () const |
const ModelLod::Mesh & | GetMesh () const |
const ShaderList & | GetActiveShaderList () const |
Holds and manages an RHI DrawPacket for a specific mesh, and the resources that are needed to build and maintain it.