Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
framecode.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
9
//------------------------------------------------------------------------------
10
#include "
frameop.h
"
11
#include "
util/stringatom.h
"
12
namespace
Frame
13
{
14
class
FrameCode
:
public
FrameOp
15
{
16
public
:
18
FrameCode
();
20
virtual
~FrameCode
();
21
22
using
FrameCodeFunc
= void(*)(
const
CoreGraphics::CmdBufferId
cmdBuf,
const
IndexT
frameIndex,
const
IndexT
bufferIndex);
23
using
FrameBuildFunc
= void(*)(
const
CoreGraphics::PassId
pass,
uint
subpass);
24
struct
CompiledImpl
:
public
FrameOp::Compiled
25
{
26
void
Run
(
const
CoreGraphics::CmdBufferId
cmdBuf,
const
IndexT
frameIndex,
const
IndexT
bufferIndex)
override
;
27
28
#if NEBULA_GRAPHICS_DEBUG
29
Util::StringAtom
name
;
30
#endif
31
FrameCodeFunc
func
;
32
};
33
34
FrameOp::Compiled
*
AllocCompiled
(
Memory::ArenaAllocator<BIG_CHUNK>
& allocator)
override
;
35
36
FrameCodeFunc
func
;
37
FrameBuildFunc
buildFunc
;
38
private
:
39
40
void
Build
(
const
BuildContext
& ctx)
override
;
41
};
42
43
}
// namespace Frame2
Frame::FrameCode::buildFunc
FrameBuildFunc buildFunc
Definition
framecode.h:37
Frame::FrameCode::FrameBuildFunc
void(*)(const CoreGraphics::PassId pass, uint subpass) FrameBuildFunc
Definition
framecode.h:23
Frame::FrameCode::FrameCode
FrameCode()
constructor
Definition
framecode.cc:12
Frame::FrameCode::FrameCodeFunc
void(*)(const CoreGraphics::CmdBufferId cmdBuf, const IndexT frameIndex, const IndexT bufferIndex) FrameCodeFunc
Definition
framecode.h:22
Frame::FrameCode::~FrameCode
virtual ~FrameCode()
destructor
Definition
framecode.cc:20
Frame::FrameCode::func
FrameCodeFunc func
Definition
framecode.h:36
Frame::FrameCode::AllocCompiled
FrameOp::Compiled * AllocCompiled(Memory::ArenaAllocator< BIG_CHUNK > &allocator) override
allocate instance of compiled
Definition
framecode.cc:37
Frame::FrameCode::Build
void Build(const BuildContext &ctx) override
build operation
Definition
framecode.cc:52
Frame::FrameOp::name
Util::StringAtom name
Definition
frameop.h:187
Frame::FrameOp::FrameOp
FrameOp()
constructor
Definition
frameop.cc:15
Memory::ArenaAllocator
Allocates memory in chunks.
Definition
arenaallocator.h:36
Util::StringAtom
A StringAtom.
Definition
stringatom.h:22
frameop.h
Frame
ImGUI debug interface for inspecting frame scripts.
Definition
shaderserverbase.h:52
stringatom.h
CoreGraphics::CmdBufferId
Definition
commandbuffer.h:176
CoreGraphics::PassId
Definition
pass.h:28
Frame::FrameCode::CompiledImpl
Definition
framecode.h:25
Frame::FrameCode::CompiledImpl::Run
void Run(const CoreGraphics::CmdBufferId cmdBuf, const IndexT frameIndex, const IndexT bufferIndex) override
Run operation on a specific command buffer.
Definition
framecode.cc:28
Frame::FrameCode::CompiledImpl::func
FrameCodeFunc func
Definition
framecode.h:31
Frame::FrameOp::BuildContext
Definition
frameop.h:162
Frame::FrameOp::Compiled
Definition
frameop.h:94
uint
unsigned int uint
Definition
types.h:33
IndexT
int IndexT
Definition
types.h:41
code
render
frame
framecode.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.