3#include "mc/_HeaderOutputPredefine.h"
14namespace GeometryAtlas::details {
20 virtual ~IInventoryItemRenderContext() =
default;
22 virtual int getNumRenderPasses() = 0;
24 virtual ::BatchKey createBatchKey(
int pass) = 0;
26 virtual void tryPreRenderSetup(
int pass) = 0;
28 virtual ::std::unique_ptr<::MinecraftUIPersistentMeshItem>
29 createPersistentMesh(::ComponentRenderBatch
const& batch) = 0;
31 virtual void configureUnbatchedRenderContext(::OffscreenCaptureDescription
const& capture,
bool isDrawingUI) = 0;
33 virtual void beginSharedMeshBatch(::ComponentRenderBatch
const& batch) = 0;
35 virtual void render(::InventoryItemRenderOwnerData
const& data,
int pass,
float alpha) = 0;
37 virtual bool endSharedMeshBatch(
38 ::ComponentRenderBatch& renderBatch,
39 ::MinecraftUIPersistentMeshItem& persistentMeshItem,
40 ::OffscreenCaptureDescription
const& capture
Definition ComponentRenderBatch.h:5
Definition IInventoryItemRenderContext.h:7
Definition InventoryItemRenderOwnerData.h:5
Definition MinecraftUIPersistentMeshItem.h:5
Definition OffscreenCaptureDescription.h:5