summaryrefslogtreecommitdiffstats
path: root/tools/gfx/cuda/cuda-command-encoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/cuda/cuda-command-encoder.cpp')
-rw-r--r--tools/gfx/cuda/cuda-command-encoder.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/gfx/cuda/cuda-command-encoder.cpp b/tools/gfx/cuda/cuda-command-encoder.cpp
index 6911eb649..d94b40e21 100644
--- a/tools/gfx/cuda/cuda-command-encoder.cpp
+++ b/tools/gfx/cuda/cuda-command-encoder.cpp
@@ -193,13 +193,14 @@ SLANG_NO_THROW Result SLANG_MCALL
return SLANG_OK;
}
-SLANG_NO_THROW void SLANG_MCALL ComputeCommandEncoderImpl::dispatchCompute(int x, int y, int z)
+SLANG_NO_THROW Result SLANG_MCALL ComputeCommandEncoderImpl::dispatchCompute(int x, int y, int z)
{
m_writer->bindRootShaderObject(m_rootObject);
m_writer->dispatchCompute(x, y, z);
+ return SLANG_OK;
}
-SLANG_NO_THROW void SLANG_MCALL
+SLANG_NO_THROW Result SLANG_MCALL
ComputeCommandEncoderImpl::dispatchComputeIndirect(IBufferResource* argBuffer, Offset offset)
{
SLANG_UNIMPLEMENTED_X("dispatchComputeIndirect");