Nebula
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"
12namespace Frame
13{
14class FrameCode : public FrameOp
15{
16public:
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);
25 {
26 void Run(const CoreGraphics::CmdBufferId cmdBuf, const IndexT frameIndex, const IndexT bufferIndex) override;
27
28#if NEBULA_GRAPHICS_DEBUG
30#endif
32 };
33
35
38private:
39
40 void Build(const BuildContext& ctx) override;
41};
42
43} // namespace Frame2
Definition framecode.h:15
FrameBuildFunc buildFunc
Definition framecode.h:37
void(*)(const CoreGraphics::PassId pass, uint subpass) FrameBuildFunc
Definition framecode.h:23
FrameCode()
constructor
Definition framecode.cc:12
void(*)(const CoreGraphics::CmdBufferId cmdBuf, const IndexT frameIndex, const IndexT bufferIndex) FrameCodeFunc
Definition framecode.h:22
virtual ~FrameCode()
destructor
Definition framecode.cc:20
FrameCodeFunc func
Definition framecode.h:36
FrameOp::Compiled * AllocCompiled(Memory::ArenaAllocator< BIG_CHUNK > &allocator) override
allocate instance of compiled
Definition framecode.cc:37
void Build(const BuildContext &ctx) override
build operation
Definition framecode.cc:52
Definition frameop.h:32
Util::StringAtom name
Definition frameop.h:187
Allocates memory in chunks.
Definition arenaallocator.h:36
A StringAtom.
Definition stringatom.h:22
ImGUI debug interface for inspecting frame scripts.
Definition shaderserverbase.h:52
Definition commandbuffer.h:155
Definition pass.h:28
Definition framecode.h:25
void Run(const CoreGraphics::CmdBufferId cmdBuf, const IndexT frameIndex, const IndexT bufferIndex) override
Run operation on a specific command buffer.
Definition framecode.cc:28
FrameCodeFunc func
Definition framecode.h:31
Definition frameop.h:162
Definition frameop.h:94
unsigned int uint
Definition types.h:31
int IndexT
Definition types.h:48