Nebula
Loading...
Searching...
No Matches
framesubpassplugin.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
9//------------------------------------------------------------------------------
10#include "frameop.h"
11
12namespace Frame
13{
15{
16public:
20 virtual ~FrameSubpassPlugin();
21
23 void Setup();
25 void Discard();
26
28 {
29 void Run(const CoreGraphics::CmdBufferId cmdBuf, const IndexT frameIndex, const IndexT bufferIndex) override;
30
31 std::function<void(const CoreGraphics::CmdBufferId cmdBuf, IndexT, IndexT)> func;
32 };
33
35 std::function<void(const CoreGraphics::CmdBufferId cmdBuf, IndexT, IndexT)> func;
36
37private:
38
40 void Build(
47 );
48
49};
50
51} // namespace Frame2
Definition frameop.h:32
Definition framesubpassplugin.h:15
void Build(Memory::ArenaAllocator< BIG_CHUNK > &allocator, Util::Array< FrameOp::Compiled * > &compiledOps, Util::Array< CoreGraphics::EventId > &events, Util::Array< CoreGraphics::BarrierId > &barriers, Util::Dictionary< CoreGraphics::BufferId, Util::Array< BufferDependency > > &rwBuffers, Util::Dictionary< CoreGraphics::TextureId, Util::Array< TextureDependency > > &textures)
build operation
Definition framesubpassplugin.cc:64
void Setup()
setup plugin pass
Definition framesubpassplugin.cc:33
FrameSubpassPlugin()
constructor
Definition framesubpassplugin.cc:16
std::function< void(const CoreGraphics::CmdBufferId cmdBuf, IndexT, IndexT)> func
Definition framesubpassplugin.h:35
virtual ~FrameSubpassPlugin()
destructor
Definition framesubpassplugin.cc:24
FrameOp::Compiled * AllocCompiled(Memory::ArenaAllocator< BIG_CHUNK > &allocator)
allocate instance of compiled
Definition framesubpassplugin.cc:53
void Discard()
discard operation
Definition framesubpassplugin.cc:42
Allocates memory in chunks.
Definition arenaallocator.h:36
Nebula's dynamic array class.
Definition array.h:60
A collection of key/value pairs with quick value retrieval by key at roughly O(log n).
Definition dictionary.h:34
ImGUI debug interface for inspecting frame scripts.
Definition shaderserverbase.h:52
Definition buffer.h:23
Definition commandbuffer.h:155
texture type
Definition texture.h:25
Definition frameop.h:94
Definition framesubpassplugin.h:28
std::function< void(const CoreGraphics::CmdBufferId cmdBuf, IndexT, IndexT)> func
Definition framesubpassplugin.h:31
void Run(const CoreGraphics::CmdBufferId cmdBuf, const IndexT frameIndex, const IndexT bufferIndex) override
Run operation on a specific command buffer.
Definition framesubpassplugin.cc:96
int IndexT
Definition types.h:48