diff options
| author | Yong He <yonghe@outlook.com> | 2023-02-06 14:34:19 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-06 14:34:19 -0800 |
| commit | 5ede9a3b739a62a46fa408b19e12cf3f72730f1d (patch) | |
| tree | 676b5c23b867b6ad94117c547befe65ffa6548ba /tools/gfx/cuda/cuda-command-encoder.h | |
| parent | e893a831d7f64eb52e76df087190247f43b150ae (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.h')
| -rw-r--r-- | tools/gfx/cuda/cuda-command-encoder.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gfx/cuda/cuda-command-encoder.h b/tools/gfx/cuda/cuda-command-encoder.h index b73dd48c0..ab8aa8f8f 100644 --- a/tools/gfx/cuda/cuda-command-encoder.h +++ b/tools/gfx/cuda/cuda-command-encoder.h @@ -149,9 +149,9 @@ public: virtual SLANG_NO_THROW Result SLANG_MCALL bindPipelineWithRootObject(IPipelineState* state, IShaderObject* rootObject) override; - virtual SLANG_NO_THROW void SLANG_MCALL dispatchCompute(int x, int y, int z) override; + virtual SLANG_NO_THROW Result SLANG_MCALL dispatchCompute(int x, int y, int z) override; - virtual SLANG_NO_THROW void SLANG_MCALL + virtual SLANG_NO_THROW Result SLANG_MCALL dispatchComputeIndirect(IBufferResource* argBuffer, Offset offset) override; }; |
