diff options
| author | Yong He <yonghe@outlook.com> | 2021-11-16 12:59:42 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-16 12:59:42 -0800 |
| commit | 5042867e21f681eb0e9edde55146a9b8c1d3637c (patch) | |
| tree | 6e8bd700e607f690f3ea7cb5ae4c628533de8190 /tools/gfx/debug-layer.cpp | |
| parent | c51f1e27f0e307a80a57a840b2337e3226b3c2be (diff) | |
gfx: setSamplePositions and clearResourceView. (#2018)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/debug-layer.cpp')
| -rw-r--r-- | tools/gfx/debug-layer.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
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<DebugQueryPool*>(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; |
