summaryrefslogtreecommitdiffstats
path: root/tools/gfx-unit-test/get-buffer-resource-handle-test.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-02-16 22:34:20 -0800
committerGitHub <noreply@github.com>2022-02-16 22:34:20 -0800
commitd4145519dd86f6d18b07393d989141bda4d4ceb3 (patch)
tree656652524093abc1699301913506a906cf8e05c3 /tools/gfx-unit-test/get-buffer-resource-handle-test.cpp
parent505860911a562f25a8ada1bc294786c3a63b848f (diff)
Various gfx fixes. (#2132)
* Various gfx fixes. * Fix test case. * Fix crash. * Trigger build * Trigger build 2 * Fix vulkan unit tests. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx-unit-test/get-buffer-resource-handle-test.cpp')
-rw-r--r--tools/gfx-unit-test/get-buffer-resource-handle-test.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/gfx-unit-test/get-buffer-resource-handle-test.cpp b/tools/gfx-unit-test/get-buffer-resource-handle-test.cpp
index dc0da830a..36b6b3cad 100644
--- a/tools/gfx-unit-test/get-buffer-resource-handle-test.cpp
+++ b/tools/gfx-unit-test/get-buffer-resource-handle-test.cpp
@@ -16,7 +16,6 @@ namespace gfx_test
void getBufferResourceHandleTestImpl(IDevice* device, UnitTestContext* context)
{
const int numberCount = 1;
- float initialData[] = { 0.0f };
IBufferResource::Desc bufferDesc = {};
bufferDesc.sizeInBytes = numberCount * sizeof(float);
bufferDesc.format = gfx::Format::Unknown;
@@ -32,7 +31,7 @@ namespace gfx_test
ComPtr<IBufferResource> buffer;
GFX_CHECK_CALL_ABORT(device->createBufferResource(
bufferDesc,
- (void*)initialData,
+ nullptr,
buffer.writeRef()));
InteropHandle handle;