summaryrefslogtreecommitdiff
path: root/tools/gfx/cuda
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/cuda')
-rw-r--r--tools/gfx/cuda/render-cuda.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/gfx/cuda/render-cuda.cpp b/tools/gfx/cuda/render-cuda.cpp
index f60be8eda..263360018 100644
--- a/tools/gfx/cuda/render-cuda.cpp
+++ b/tools/gfx/cuda/render-cuda.cpp
@@ -1176,7 +1176,11 @@ public:
public:
virtual SLANG_NO_THROW SlangResult SLANG_MCALL initialize(const Desc& desc) override
{
- SLANG_RETURN_ON_FAIL(slangContext.initialize(desc.slang, SLANG_PTX, "sm_5_1"));
+ SLANG_RETURN_ON_FAIL(slangContext.initialize(
+ desc.slang,
+ SLANG_PTX,
+ "sm_5_1",
+ makeArray(slang::PreprocessorMacroDesc{ "__CUDA_COMPUTE__", "1" }).getView()));
SLANG_RETURN_ON_FAIL(RendererBase::initialize(desc));