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>
|
|
| MeshDrawPacket (ModelLod &modelLod, size_t modelLodMeshIndex, int32_t meshInfoIndex, 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) |
| |
|
RHI::DrawPacket * | GetRHIDrawPacket () |
| |
|
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 |
| |
|
void | DebugOutputShaderVariants () |
| |
|
const Data::Instance< RPI::ShaderResourceGroup > & | GetDrawSrg (uint32_t drawItemIndex) const |
| | Returns the DrawSrg from the DrawItem that corresponds to @drawItemIndex.
|
| |
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:
- Gems/Atom/RPI/Code/Include/Atom/RPI.Public/MeshDrawPacket.h