summaryrefslogtreecommitdiffstats
path: root/tools/gfx-unit-test/nested-parameter-block.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-unit-test/nested-parameter-block.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-unit-test/nested-parameter-block.cpp')
-rw-r--r--tools/gfx-unit-test/nested-parameter-block.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gfx-unit-test/nested-parameter-block.cpp b/tools/gfx-unit-test/nested-parameter-block.cpp
index 2917218f1..b21b0bcf2 100644
--- a/tools/gfx-unit-test/nested-parameter-block.cpp
+++ b/tools/gfx-unit-test/nested-parameter-block.cpp
@@ -70,7 +70,7 @@ namespace gfx_test
srvDesc.bufferElementSize = sizeof(uint32_t) * 4;
srvDesc.bufferRange.elementCount = 4;
srvDesc.bufferRange.firstElement = 0;
- srvs.add(device->createBufferView(srvBuffers[i], srvDesc));
+ srvs.add(device->createBufferView(srvBuffers[i], nullptr, srvDesc));
}
Slang::ComPtr<IBufferResource> resultBuffer =
createBuffer(device, 0, gfx::ResourceState::UnorderedAccess);
@@ -82,7 +82,7 @@ namespace gfx_test
resultBufferViewDesc.bufferRange.firstElement = 0;
Slang::ComPtr<IResourceView> resultBufferView;
SLANG_CHECK(SLANG_SUCCEEDED(device->createBufferView(
- resultBuffer, resultBufferViewDesc, resultBufferView.writeRef())));
+ resultBuffer, nullptr, resultBufferViewDesc, resultBufferView.writeRef())));
Slang::ComPtr<IShaderObject> materialObject;
SLANG_CHECK(SLANG_SUCCEEDED(device->createMutableShaderObject(