Skip to content

Commit f1bde42

Browse files
authored
Fix build break with new CopyDesc0ToDesc1 (#4477)
Second argument should be D3D12_RESOURCE_DESC for the old version. Function call needs a semicolon and no open curly brace.
1 parent e1f8c6a commit f1bde42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/clang/unittests/HLSL/ExecutionTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ class ExecutionTest {
910910

911911
#if defined(NTDDI_WIN10_CU) && WDK_NTDDI_VERSION >= NTDDI_WIN10_CU
912912
// Copy common fields from desc0 to desc1 and zero out the new one
913-
void CopyDesc0ToDesc1(D3D12_RESOURCE_DESC1 &desc1, const D3D12_RESOURCE_DESC1 &desc0) {
913+
void CopyDesc0ToDesc1(D3D12_RESOURCE_DESC1 &desc1, const D3D12_RESOURCE_DESC &desc0) {
914914
desc1.Dimension = desc0.Dimension;
915915
desc1.Alignment = desc0.Alignment;
916916
desc1.Width = desc0.Width;
@@ -956,7 +956,7 @@ class ExecutionTest {
956956
CComPtr<ID3D12Device10> pDevice10;
957957
// Copy resDesc0 to resDesc1 zeroing anything new
958958
D3D12_RESOURCE_DESC1 resDesc1 = {0};
959-
CopyDesc0ToDesc1(resDesc1, resDesc) {
959+
CopyDesc0ToDesc1(resDesc1, resDesc);
960960
VERIFY_SUCCEEDED(pDevice->QueryInterface(IID_PPV_ARGS(&pDevice10)));
961961
VERIFY_SUCCEEDED(pDevice10->CreateCommittedResource3(
962962
&defaultHeapProperties,

0 commit comments

Comments
 (0)