summaryrefslogtreecommitdiff
path: root/tools/graphics-app-framework/gui.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-03-04 16:25:58 -0800
committerGitHub <noreply@github.com>2021-03-04 16:25:58 -0800
commita5ac4999b4dea546a7ef824669ab1809224b6448 (patch)
tree15bb22eb98a94f7f81489deef55396461501d3dc /tools/graphics-app-framework/gui.h
parent13ff0bd345990c0fdfb7b52ebd5339cddb04889e (diff)
Refactor `gfx` to surface `CommandBuffer` interface. (#1735)
* Refactor `gfx` to surface `CommandBuffer` interface. * Fixes. * Fix code review issues, and make vulkan runnable on devices without VK_EXT_extended_dynamic_states. * Update solution files * Move out-of-date examples to examples/experimental Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/graphics-app-framework/gui.h')
-rw-r--r--tools/graphics-app-framework/gui.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/graphics-app-framework/gui.h b/tools/graphics-app-framework/gui.h
index 22b4bf2f5..680cea14b 100644
--- a/tools/graphics-app-framework/gui.h
+++ b/tools/graphics-app-framework/gui.h
@@ -12,14 +12,16 @@ namespace gfx {
struct GUI : Slang::RefObject
{
- GUI(Window* window, IRenderer* renderer, IFramebufferLayout* framebufferLayout);
+ GUI(Window* window, IRenderer* renderer, ICommandQueue* queue, IFramebufferLayout* framebufferLayout);
~GUI();
void beginFrame();
- void endFrame();
+ void endFrame(IFramebuffer* framebuffer);
private:
Slang::ComPtr<IRenderer> renderer;
+ Slang::ComPtr<ICommandQueue> queue;
+ Slang::ComPtr<IRenderPassLayout> renderPass;
Slang::ComPtr<IPipelineState> pipelineState;
Slang::ComPtr<IDescriptorSetLayout> descriptorSetLayout;
Slang::ComPtr<IPipelineLayout> pipelineLayout;