Nebula
Toggle main menu visibility
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/gpulang/materialtemplatesgpulang.h"
12
#include "
graphics/graphicsentity.h
"
13
namespace
Frame
14
{
15
class
FrameSubpassBatch
:
public
FrameOp
16
{
17
public
:
19
FrameSubpassBatch
();
21
virtual
~FrameSubpassBatch
();
22
23
struct
CompiledImpl
:
public
FrameOp::Compiled
24
{
25
void
Run
(
const
CoreGraphics::CmdBufferId
cmdBuf,
const
IndexT
frameIndex,
const
IndexT
bufferIndex)
override
;
26
27
MaterialTemplates::BatchGroup
batch
;
28
};
29
30
FrameOp::Compiled
*
AllocCompiled
(
Memory::ArenaAllocator<BIG_CHUNK>
& allocator);
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
Frame::FrameOp::FrameOp
FrameOp()
constructor
Definition
frameop.cc:15
Frame::FrameSubpassBatch::batch
MaterialTemplates::BatchGroup batch
Definition
framesubpassbatch.h:31
Frame::FrameSubpassBatch::~FrameSubpassBatch
virtual ~FrameSubpassBatch()
destructor
Definition
framesubpassbatch.cc:41
Frame::FrameSubpassBatch::DrawBatch
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
Frame::FrameSubpassBatch::AllocCompiled
FrameOp::Compiled * AllocCompiled(Memory::ArenaAllocator< BIG_CHUNK > &allocator)
allocate instance of compiled
Definition
framesubpassbatch.cc:50
Frame::FrameSubpassBatch::FrameSubpassBatch
FrameSubpassBatch()
constructor
Definition
framesubpassbatch.cc:33
Memory::ArenaAllocator
Allocates memory in chunks.
Definition
arenaallocator.h:36
frameop.h
graphicsentity.h
Frame
ImGUI debug interface for inspecting frame scripts.
Definition
shaderserverbase.h:52
CoreGraphics::CmdBufferId
Definition
commandbuffer.h:176
Frame::FrameOp::Compiled
Definition
frameop.h:94
Frame::FrameSubpassBatch::CompiledImpl
Definition
framesubpassbatch.h:24
Frame::FrameSubpassBatch::CompiledImpl::batch
MaterialTemplates::BatchGroup batch
Definition
framesubpassbatch.h:27
Frame::FrameSubpassBatch::CompiledImpl::Run
void Run(const CoreGraphics::CmdBufferId cmdBuf, const IndexT frameIndex, const IndexT bufferIndex) override
Run operation on a specific command buffer.
Definition
framesubpassbatch.cc:247
Graphics::GraphicsEntityId
The graphics entity is only an Id, to which we can attach GraphicsContexts.
Definition
graphicsentity.h:16
SizeT
int SizeT
Definition
types.h:42
IndexT
int IndexT
Definition
types.h:41
code
render
frame
framesubpassbatch.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.