summaryrefslogtreecommitdiff
path: root/tools/gfx-unit-test/create-buffer-from-handle.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-01-10 13:30:41 -0800
committerGitHub <noreply@github.com>2022-01-10 13:30:41 -0800
commitad9abad220df96d2155f6825f158b7f6327b7ea8 (patch)
tree12b146961910c1b4aa6a68b3063ec3e68d2ce23d /tools/gfx-unit-test/create-buffer-from-handle.cpp
parent0ac19741937e007ebb45791f53d413d21055feda (diff)
Various fixes to gfx. (#2074)
* Various gfx fixes. * Fixup. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx-unit-test/create-buffer-from-handle.cpp')
-rw-r--r--tools/gfx-unit-test/create-buffer-from-handle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gfx-unit-test/create-buffer-from-handle.cpp b/tools/gfx-unit-test/create-buffer-from-handle.cpp
index f7e9356bc..22612dbf0 100644
--- a/tools/gfx-unit-test/create-buffer-from-handle.cpp
+++ b/tools/gfx-unit-test/create-buffer-from-handle.cpp
@@ -39,7 +39,7 @@ namespace gfx_test
ResourceState::CopyDestination,
ResourceState::CopySource);
bufferDesc.defaultState = ResourceState::UnorderedAccess;
- bufferDesc.cpuAccessFlags = MemoryType::GpuOnly;
+ bufferDesc.memoryType = MemoryType::DeviceLocal;
ComPtr<IBufferResource> originalNumbersBuffer;
GFX_CHECK_CALL_ABORT(device->createBufferResource(