summaryrefslogtreecommitdiffstats
path: root/tools/gfx/debug-layer/debug-command-encoder.h
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/debug-layer/debug-command-encoder.h
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/debug-layer/debug-command-encoder.h')
-rw-r--r--tools/gfx/debug-layer/debug-command-encoder.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/gfx/debug-layer/debug-command-encoder.h b/tools/gfx/debug-layer/debug-command-encoder.h
index b53a11074..395db587e 100644
--- a/tools/gfx/debug-layer/debug-command-encoder.h
+++ b/tools/gfx/debug-layer/debug-command-encoder.h
@@ -123,8 +123,8 @@ public:
bindPipeline(IPipelineState* state, IShaderObject** outRootShaderObject) override;
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 void SLANG_MCALL
+ virtual SLANG_NO_THROW Result SLANG_MCALL dispatchCompute(int x, int y, int z) override;
+ virtual SLANG_NO_THROW Result SLANG_MCALL
dispatchComputeIndirect(IBufferResource* cmdBuffer, Offset offset) override;
public:
@@ -197,17 +197,17 @@ public:
const Offset* offsets) override;
virtual SLANG_NO_THROW void SLANG_MCALL
setIndexBuffer(IBufferResource* buffer, Format indexFormat, Offset offset = 0) override;
- virtual SLANG_NO_THROW void SLANG_MCALL
+ virtual SLANG_NO_THROW Result SLANG_MCALL
draw(GfxCount vertexCount, GfxIndex startVertex = 0) override;
- virtual SLANG_NO_THROW void SLANG_MCALL
+ virtual SLANG_NO_THROW Result SLANG_MCALL
drawIndexed(GfxCount indexCount, GfxIndex startIndex = 0, GfxIndex baseVertex = 0) override;
- virtual SLANG_NO_THROW void SLANG_MCALL drawIndirect(
+ virtual SLANG_NO_THROW Result SLANG_MCALL drawIndirect(
GfxCount maxDrawCount,
IBufferResource* argBuffer,
Offset argOffset,
IBufferResource* countBuffer,
Offset countOffset) override;
- virtual SLANG_NO_THROW void SLANG_MCALL drawIndexedIndirect(
+ virtual SLANG_NO_THROW Result SLANG_MCALL drawIndexedIndirect(
GfxCount maxDrawCount,
IBufferResource* argBuffer,
Offset argOffset,
@@ -218,13 +218,13 @@ public:
GfxCount samplesPerPixel,
GfxCount pixelCount,
const SamplePosition* samplePositions) override;
- virtual SLANG_NO_THROW void SLANG_MCALL drawInstanced(
+ virtual SLANG_NO_THROW Result SLANG_MCALL drawInstanced(
GfxCount vertexCount,
GfxCount instanceCount,
GfxIndex startVertex,
GfxIndex startInstanceLocation) override;
- virtual SLANG_NO_THROW void SLANG_MCALL drawIndexedInstanced(
+ virtual SLANG_NO_THROW Result SLANG_MCALL drawIndexedInstanced(
GfxCount indexCount,
GfxCount instanceCount,
GfxIndex startIndexLocation,
@@ -277,7 +277,7 @@ public:
bindPipeline(IPipelineState* state, IShaderObject** outRootObject) override;
virtual SLANG_NO_THROW Result SLANG_MCALL
bindPipelineWithRootObject(IPipelineState* state, IShaderObject* rootObject) override;
- virtual SLANG_NO_THROW void SLANG_MCALL dispatchRays(
+ virtual SLANG_NO_THROW Result SLANG_MCALL dispatchRays(
GfxIndex rayGenShaderIndex,
IShaderTable* shaderTable,
GfxCount width,