forked from Dynamitos/Seele
Changes to command ownership
This commit is contained in:
1 parent
2a7643ddf3
commit
b830fd378c
13 files changed
+216
-200
No files matched your search
@@ -22,8 +22,8 @@ public:
|
||||
void endRenderPass();
|
||||
void present(MTL::Drawable* drawable);
|
||||
void end(PEvent signal);
|
||||
void executeCommands(const Array<Gfx::PRenderCommand>& commands);
|
||||
void executeCommands(const Array<Gfx::PComputeCommand>& commands);
|
||||
void executeCommands(Array<Gfx::ORenderCommand> commands);
|
||||
void executeCommands(Array<Gfx::OComputeCommand> commands);
|
||||
void waitDeviceIdle();
|
||||
void signalEvent(PEvent event);
|
||||
void waitForEvent(PEvent event);
|
||||
@@ -83,8 +83,8 @@ public:
|
||||
return queue;
|
||||
}
|
||||
PCommand getCommands();
|
||||
PRenderCommand getRenderCommand(const std::string& name);
|
||||
PComputeCommand getComputeCommand(const std::string& name);
|
||||
ORenderCommand getRenderCommand(const std::string& name);
|
||||
OComputeCommand getComputeCommand(const std::string& name);
|
||||
void submitCommands(PEvent signal = nullptr);
|
||||
private:
|
||||
PGraphics graphics;
|
||||
|
||||
Reference in new issue
Block a user