summaryrefslogtreecommitdiff
path: root/tools/gfx/cuda/render-cuda.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-06-30 14:59:18 -0700
committerGitHub <noreply@github.com>2021-06-30 14:59:18 -0700
commita03d21a5f54cba913c3f52e2822a433de8f39fdd (patch)
tree84d24d4355cc4b3e941da9eab57147cd9d297ee4 /tools/gfx/cuda/render-cuda.cpp
parent5395ef82535c283109b1ea6b89b737c5a39bf147 (diff)
[gfx] Add inline ray tracing support. (#1899)
Diffstat (limited to 'tools/gfx/cuda/render-cuda.cpp')
-rw-r--r--tools/gfx/cuda/render-cuda.cpp38
1 files changed, 6 insertions, 32 deletions
diff --git a/tools/gfx/cuda/render-cuda.cpp b/tools/gfx/cuda/render-cuda.cpp
index 5a7e7babf..ffd197e57 100644
--- a/tools/gfx/cuda/render-cuda.cpp
+++ b/tools/gfx/cuda/render-cuda.cpp
@@ -921,22 +921,6 @@ public:
: public IComputeCommandEncoder
{
public:
- virtual SLANG_NO_THROW SlangResult SLANG_MCALL
- queryInterface(SlangUUID const& uuid, void** outObject) override
- {
- if (uuid == GfxGUID::IID_ISlangUnknown || uuid == GfxGUID::IID_ICommandEncoder ||
- uuid == GfxGUID::IID_IComputeCommandEncoder)
- {
- *outObject = static_cast<IComputeCommandEncoder*>(this);
- return SLANG_OK;
- }
- *outObject = nullptr;
- return SLANG_E_NO_INTERFACE;
- }
- virtual SLANG_NO_THROW uint32_t SLANG_MCALL addRef() override { return 1; }
- virtual SLANG_NO_THROW uint32_t SLANG_MCALL release() override { return 1; }
-
- public:
CommandWriter* m_writer;
CommandBufferImpl* m_commandBuffer;
RefPtr<ShaderObjectBase> m_rootObject;
@@ -982,22 +966,6 @@ public:
: public IResourceCommandEncoder
{
public:
- virtual SLANG_NO_THROW SlangResult SLANG_MCALL
- queryInterface(SlangUUID const& uuid, void** outObject) override
- {
- if (uuid == GfxGUID::IID_ISlangUnknown || uuid == GfxGUID::IID_ICommandEncoder ||
- uuid == GfxGUID::IID_IResourceCommandEncoder)
- {
- *outObject = static_cast<IResourceCommandEncoder*>(this);
- return SLANG_OK;
- }
- *outObject = nullptr;
- return SLANG_E_NO_INTERFACE;
- }
- virtual SLANG_NO_THROW uint32_t SLANG_MCALL addRef() override { return 1; }
- virtual SLANG_NO_THROW uint32_t SLANG_MCALL release() override { return 1; }
-
- public:
CommandWriter* m_writer;
void init(CommandBufferImpl* cmdBuffer)
@@ -1037,6 +1005,12 @@ public:
*outEncoder = &m_resourceCommandEncoder;
}
+ virtual SLANG_NO_THROW void SLANG_MCALL
+ encodeRayTracingCommands(IRayTracingCommandEncoder** outEncoder) override
+ {
+ *outEncoder = nullptr;
+ }
+
virtual SLANG_NO_THROW void SLANG_MCALL close() override {}
};