summaryrefslogtreecommitdiff
path: root/tools/gfx-unit-test/buffer-barrier-test.cpp
diff options
context:
space:
mode:
authorskallweitNV <64953474+skallweitNV@users.noreply.github.com>2024-05-14 00:39:49 +0200
committerGitHub <noreply@github.com>2024-05-13 15:39:49 -0700
commit9f23046138629f78995d54a7722ad6749bd84db9 (patch)
tree25ac343566f896cae547046ac7e960441874ec00 /tools/gfx-unit-test/buffer-barrier-test.cpp
parent04d3dd51125182767d90c318895a6232ec4ee750 (diff)
[gfx] specify resource view buffer range in bytes (#4149)
* refactor gfx buffer range to use byte range * create buffer view with zero struct stride for ClearUnorderedAccessViewUint/Float * create buffer descriptors on demand * avoid copying gfx.dll --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools/gfx-unit-test/buffer-barrier-test.cpp')
-rw-r--r--tools/gfx-unit-test/buffer-barrier-test.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/gfx-unit-test/buffer-barrier-test.cpp b/tools/gfx-unit-test/buffer-barrier-test.cpp
index b2692f6fd..007a0d180 100644
--- a/tools/gfx-unit-test/buffer-barrier-test.cpp
+++ b/tools/gfx-unit-test/buffer-barrier-test.cpp
@@ -47,7 +47,6 @@ namespace gfx_test
IResourceView::Desc viewDesc = {};
viewDesc.type = unorderedAccess ? IResourceView::Type::UnorderedAccess : IResourceView::Type::ShaderResource;
viewDesc.format = Format::Unknown;
- viewDesc.bufferElementSize = sizeof(float);
GFX_CHECK_CALL_ABORT(device->createBufferView(
outBuffer.buffer, nullptr, viewDesc, outBuffer.view.writeRef()));
}