diff options
| author | Yong He <yonghe@outlook.com> | 2021-03-04 16:25:58 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-04 16:25:58 -0800 |
| commit | a5ac4999b4dea546a7ef824669ab1809224b6448 (patch) | |
| tree | 15bb22eb98a94f7f81489deef55396461501d3dc /tools/render-test/window.h | |
| parent | 13ff0bd345990c0fdfb7b52ebd5339cddb04889e (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/render-test/window.h')
| -rw-r--r-- | tools/render-test/window.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/tools/render-test/window.h b/tools/render-test/window.h deleted file mode 100644 index e647a602c..000000000 --- a/tools/render-test/window.h +++ /dev/null @@ -1,45 +0,0 @@ -// window.h -#pragma once - -#include <slang.h> -#include "../../source/core/slang-smart-pointer.h" - -namespace renderer_test { - -class Window; - -class WindowListener : public Slang::RefObject -{ -public: - virtual SlangResult update(Window* window) = 0; -}; - -class Window : public Slang::RefObject -{ -public: - virtual SlangResult initialize(int width, int height) = 0; - - virtual void show() = 0; - virtual void* getHandle() const = 0; - virtual void postQuit() { m_isQuitting = true; } - - /// Run the event loop. Events will be sent to the WindowListener - virtual SlangResult runLoop(WindowListener* listener) = 0; - - bool isQuitting() const { return m_isQuitting; } - int getQuitValue() const { return m_quitValue; } - - static Window* create(); - - virtual ~Window() {} - -protected: - Window() {} - - bool m_isQuitting = false; - int m_quitValue = 0; -}; - -Window* createWindow(); - -} // renderer_test |
