summaryrefslogtreecommitdiffstats
path: root/tools/gfx/cuda/cuda-command-encoder.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-02-06 14:34:19 -0800
committerGitHub <noreply@github.com>2023-02-06 14:34:19 -0800
commit5ede9a3b739a62a46fa408b19e12cf3f72730f1d (patch)
tree676b5c23b867b6ad94117c547befe65ffa6548ba /tools/gfx/cuda/cuda-command-encoder.cpp
parente893a831d7f64eb52e76df087190247f43b150ae (diff)
GFX: make dispatch commands return error code. (#2625)
* GFX: make dispatch commands return error code. * Fix cuda. --------- Co-authored-by: Yong He <yhe@nvidia.com>
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");