summaryrefslogtreecommitdiffstats
path: root/tools/gfx/debug-layer.h
diff options
context:
space:
mode:
authorKai Yao <kyao@nvidia.com>2021-10-04 13:58:51 -0700
committerGitHub <noreply@github.com>2021-10-04 13:58:51 -0700
commitda32069a0c1c8c723d7ef45100049a8f0dd5d9c4 (patch)
tree69de59f5a1e68453df9b880bd1eed3f61147f30e /tools/gfx/debug-layer.h
parent97bb82ebcdf8f1391b9d93b5a8d7b1dfc4e88e52 (diff)
Modified barrier API to accept multiple resources per call (#1959)
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools/gfx/debug-layer.h')
-rw-r--r--tools/gfx/debug-layer.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/gfx/debug-layer.h b/tools/gfx/debug-layer.h
index 2f0bc76ce..d25fbd453 100644
--- a/tools/gfx/debug-layer.h
+++ b/tools/gfx/debug-layer.h
@@ -319,8 +319,16 @@ public:
virtual SLANG_NO_THROW void SLANG_MCALL
uploadBufferData(IBufferResource* dst, size_t offset, size_t size, void* data) override;
virtual SLANG_NO_THROW void SLANG_MCALL writeTimestamp(IQueryPool* pool, SlangInt index) override;
- virtual SLANG_NO_THROW void SLANG_MCALL textureBarrier(ITextureResource* texture, ResourceState src, ResourceState dst) override;
- virtual SLANG_NO_THROW void SLANG_MCALL bufferBarrier(IBufferResource* buffer, ResourceState src, ResourceState dst) override;
+ virtual SLANG_NO_THROW void SLANG_MCALL textureBarrier(
+ size_t count,
+ ITextureResource* const* textures,
+ ResourceState src,
+ ResourceState dst) override;
+ virtual SLANG_NO_THROW void SLANG_MCALL bufferBarrier(
+ size_t count,
+ IBufferResource* const* buffers,
+ ResourceState src,
+ ResourceState dst) override;
public:
DebugCommandBuffer* commandBuffer;
bool isOpen = false;