We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2556103 commit 0d053ccCopy full SHA for 0d053cc
tools/clang/unittests/HLSL/ExecutionTest.cpp
@@ -937,11 +937,14 @@ class ExecutionTest {
937
#if defined(NTDDI_WIN10_CU) && WDK_NTDDI_VERSION >= NTDDI_WIN10_CU
938
if (castFormat) {
939
CComPtr<ID3D12Device10> pDevice10;
940
+ // Copy resDesc0 to resDesc1 zeroing anything new
941
+ D3D12_RESOURCE_DESC1 resDesc1 = {0};
942
+ memcpy(&resDesc1, &resDesc, sizeof(resDesc));
943
VERIFY_SUCCEEDED(pDevice->QueryInterface(IID_PPV_ARGS(&pDevice10)));
944
VERIFY_SUCCEEDED(pDevice10->CreateCommittedResource3(
945
&defaultHeapProperties,
946
D3D12_HEAP_FLAG_NONE,
- &resDesc,
947
+ &resDesc1,
948
D3D12_BARRIER_LAYOUT_COPY_DEST,
949
nullptr,
950
0 commit comments