Nebula
Loading...
Searching...
No Matches
framesubpassbatch.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
9//------------------------------------------------------------------------------
10#include "frameop.h"
11#include "materials/materialtemplates.h"
13namespace Frame
14{
16{
17public:
21 virtual ~FrameSubpassBatch();
22
24 {
25 void Run(const CoreGraphics::CmdBufferId cmdBuf, const IndexT frameIndex, const IndexT bufferIndex) override;
26
27 MaterialTemplates::BatchGroup batch;
28 };
29
31 MaterialTemplates::BatchGroup batch;
32
34 static void DrawBatch(const CoreGraphics::CmdBufferId cmdBuf, MaterialTemplates::BatchGroup batch, const Graphics::GraphicsEntityId id, const IndexT bufferIndex);
36 static void DrawBatch(const CoreGraphics::CmdBufferId cmdBuf, MaterialTemplates::BatchGroup batch, const Graphics::GraphicsEntityId id, const SizeT numInstances, const IndexT baseInstance, const IndexT bufferIndex);
37};
38
39} // namespace Frame2
Definition frameop.h:32
Definition framesubpassbatch.h:16
MaterialTemplates::BatchGroup batch
Definition framesubpassbatch.h:31
virtual ~FrameSubpassBatch()
destructor
Definition framesubpassbatch.cc:41
static void DrawBatch(const CoreGraphics::CmdBufferId cmdBuf, MaterialTemplates::BatchGroup batch, const Graphics::GraphicsEntityId id, const IndexT bufferIndex)
Do the actual drawing.
Definition framesubpassbatch.cc:61
FrameOp::Compiled * AllocCompiled(Memory::ArenaAllocator< BIG_CHUNK > &allocator)
allocate instance of compiled
Definition framesubpassbatch.cc:50
FrameSubpassBatch()
constructor
Definition framesubpassbatch.cc:33
Allocates memory in chunks.
Definition arenaallocator.h:36
ImGUI debug interface for inspecting frame scripts.
Definition shaderserverbase.h:52
Definition commandbuffer.h:155
Definition frameop.h:94
Definition framesubpassbatch.h:24
MaterialTemplates::BatchGroup batch
Definition framesubpassbatch.h:27
void Run(const CoreGraphics::CmdBufferId cmdBuf, const IndexT frameIndex, const IndexT bufferIndex) override
Run operation on a specific command buffer.
Definition framesubpassbatch.cc:247
The graphics entity is only an Id, to which we can attach GraphicsContexts.
Definition graphicsentity.h:16
int SizeT
Definition types.h:49
int IndexT
Definition types.h:48