From b8982fcf43b86c1e39dcc3dd19bff2821633eda6 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 9 Feb 2022 15:30:38 -0800 Subject: Various fixes to gfx. (#2120) * Various fixes to gfx. * Fix. * Fixes. * Fix. Co-authored-by: Yong He --- tools/gfx/debug-layer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/gfx/debug-layer.cpp') diff --git a/tools/gfx/debug-layer.cpp b/tools/gfx/debug-layer.cpp index 484729068..eed6afdb0 100644 --- a/tools/gfx/debug-layer.cpp +++ b/tools/gfx/debug-layer.cpp @@ -464,6 +464,7 @@ Result DebugDevice::createTextureView( Result DebugDevice::createBufferView( IBufferResource* buffer, + IBufferResource* counterBuffer, IResourceView::Desc const& desc, IResourceView** outView) { @@ -472,6 +473,7 @@ Result DebugDevice::createBufferView( RefPtr outObject = new DebugResourceView(); auto result = baseObject->createBufferView( static_cast(buffer)->baseObject, + counterBuffer ? static_cast(counterBuffer)->baseObject : nullptr, desc, outObject->baseObject.writeRef()); if (SLANG_FAILED(result)) @@ -1909,7 +1911,7 @@ Result DebugFence::setCurrentValue(uint64_t value) DebugShaderProgram::DebugShaderProgram(const IShaderProgram::Desc& desc) { - m_slangProgram = desc.slangProgram; + m_slangProgram = desc.slangGlobalScope; } Result DebugPipelineState::getNativeHandle(InteropHandle* outHandle) -- cgit v1.2.3