summaryrefslogtreecommitdiffstats
path: root/tools/gfx/debug-layer.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-02-09 15:30:38 -0800
committerGitHub <noreply@github.com>2022-02-09 15:30:38 -0800
commitb8982fcf43b86c1e39dcc3dd19bff2821633eda6 (patch)
tree0d66dbf46b50e760cce4aee232bd6a020976e6fb /tools/gfx/debug-layer.cpp
parent59f3fdc0a372d19ce4e989514ee3e9ecbcbf234c (diff)
Various fixes to gfx. (#2120)
* Various fixes to gfx. * Fix. * Fixes. * Fix. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/debug-layer.cpp')
-rw-r--r--tools/gfx/debug-layer.cpp4
1 files changed, 3 insertions, 1 deletions
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<DebugResourceView> outObject = new DebugResourceView();
auto result = baseObject->createBufferView(
static_cast<DebugBufferResource*>(buffer)->baseObject,
+ counterBuffer ? static_cast<DebugBufferResource*>(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)