summaryrefslogtreecommitdiff
path: root/tools/gfx/renderer-shared.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-02-24 15:43:43 -0800
committerGitHub <noreply@github.com>2021-02-24 15:43:43 -0800
commit9b7a007c31072bc9aebd1134aa4f1bfd28a4c541 (patch)
treeb71a48eb30b3b09ab4e77e40dc1c68ecd854ef82 /tools/gfx/renderer-shared.h
parentd66b30729029bdb43892e05c9c80fd56ac95a24f (diff)
Explicit swapchain interface in `gfx`. (#1726)
* Explicit swapchain interface in `gfx`. * Correctly return nullptr when `IRenderer` creation failed. * Fix crashes on CUDA tests. * Cleanups.
Diffstat (limited to 'tools/gfx/renderer-shared.h')
-rw-r--r--tools/gfx/renderer-shared.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/gfx/renderer-shared.h b/tools/gfx/renderer-shared.h
index c9f2b3340..b543e709b 100644
--- a/tools/gfx/renderer-shared.h
+++ b/tools/gfx/renderer-shared.h
@@ -16,6 +16,9 @@ struct GfxGUID
static const Slang::Guid IID_IPipelineLayout;
static const Slang::Guid IID_IPipelineState;
static const Slang::Guid IID_IResourceView;
+ static const Slang::Guid IID_IFramebuffer;
+ static const Slang::Guid IID_IFramebufferLayout;
+ static const Slang::Guid IID_ISwapchain;
static const Slang::Guid IID_ISamplerState;
static const Slang::Guid IID_IResource;
static const Slang::Guid IID_IBufferResource;
@@ -234,7 +237,7 @@ public:
// Indicates whether this is a specializable pipeline. A specializable
// pipeline cannot be used directly and must be specialized first.
bool isSpecializable = false;
-
+ ComPtr<IShaderProgram> m_program;
protected:
void initializeBase(const PipelineStateDesc& inDesc);
};
@@ -388,7 +391,7 @@ protected:
protected:
- virtual SLANG_NO_THROW SlangResult SLANG_MCALL initialize(const Desc& desc, void* inWindowHandle);
+ virtual SLANG_NO_THROW SlangResult SLANG_MCALL initialize(const Desc& desc);
protected:
Slang::List<Slang::String> m_features;
public: