From 5042867e21f681eb0e9edde55146a9b8c1d3637c Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 16 Nov 2021 12:59:42 -0800 Subject: gfx: setSamplePositions and clearResourceView. (#2018) Co-authored-by: Yong He --- tools/gfx/debug-layer.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tools/gfx/debug-layer.cpp') diff --git a/tools/gfx/debug-layer.cpp b/tools/gfx/debug-layer.cpp index 90997edda..5b4ee981c 100644 --- a/tools/gfx/debug-layer.cpp +++ b/tools/gfx/debug-layer.cpp @@ -1135,6 +1135,13 @@ void DebugRenderCommandEncoder::writeTimestamp(IQueryPool* pool, SlangInt index) baseObject->writeTimestamp(static_cast(pool)->baseObject, index); } +Result DebugRenderCommandEncoder::setSamplePositions( + uint32_t samplesPerPixel, uint32_t pixelCount, const SamplePosition* samplePositions) +{ + SLANG_GFX_API_FUNC; + return baseObject->setSamplePositions(samplesPerPixel, pixelCount, samplePositions); +} + void DebugResourceCommandEncoder::endEncoding() { SLANG_GFX_API_FUNC; @@ -1237,6 +1244,13 @@ void DebugResourceCommandEncoder::uploadTextureData( getInnerObj(dst), subResourceRange, offset, extent, subResourceData, subResourceDataCount); } +void DebugResourceCommandEncoder::clearResourceView( + IResourceView* view, ClearValue* clearValue, ClearResourceViewFlags::Enum flags) +{ + SLANG_GFX_API_FUNC; + baseObject->clearResourceView(getInnerObj(view), clearValue, flags); +} + void DebugRayTracingCommandEncoder::endEncoding() { SLANG_GFX_API_FUNC; -- cgit v1.2.3