diff --git a/CMakePresets.json b/CMakePresets.json index 68a93218..66866bd6 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -353,6 +353,8 @@ { "name": "x86-Release" , "configurePreset": "x86-Release" }, { "name": "arm64-Debug" , "configurePreset": "arm64-Debug" }, { "name": "arm64-Release", "configurePreset": "arm64-Release" }, + { "name": "arm64ec-Debug" , "configurePreset": "arm64ec-Debug" }, + { "name": "arm64ec-Release", "configurePreset": "arm64ec-Release" }, { "name": "x64-Debug-Clang" , "configurePreset": "x64-Debug-Clang" }, { "name": "x64-Release-Clang" , "configurePreset": "x64-Release-Clang" }, diff --git a/DirectXTex/DirectXTexDDS.cpp b/DirectXTex/DirectXTexDDS.cpp index b6fe1b05..585587e4 100644 --- a/DirectXTex/DirectXTexDDS.cpp +++ b/DirectXTex/DirectXTexDDS.cpp @@ -397,7 +397,7 @@ namespace metadata.arraySize = d3d10ext->arraySize; if (metadata.arraySize == 0) { - return HRESULT_E_INVALID_DATA; + metadata.arraySize = 1; } metadata.format = d3d10ext->dxgiFormat;