summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/render-test/cuda/cuda-compute-util.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/render-test/cuda/cuda-compute-util.cpp b/tools/render-test/cuda/cuda-compute-util.cpp
index 5d6f82499..e90b4c541 100644
--- a/tools/render-test/cuda/cuda-compute-util.cpp
+++ b/tools/render-test/cuda/cuda-compute-util.cpp
@@ -1550,15 +1550,19 @@ SlangResult _loadAndInvokeKernel(
{
switch( outputAndLayout.output.desc.pipelineType )
{
- default:
- return SLANG_FAIL;
-
case PipelineType::Compute:
return _loadAndInvokeComputeProgram(cudaContext, cudaStream, outputAndLayout, dispatchSize, outContext);
case PipelineType::RayTracing:
+#ifdef RENDER_TEST_OPTIX
return _loadAndInvokeRayTracingProgram(cudaContext, cudaStream, outputAndLayout, dispatchSize, outContext);
+#endif
+ break;
+
+ default: break;
}
+
+ return SLANG_FAIL;
}
/// Execute a CUDA program (either compute or ray-tracing)