diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/dawn/003-fix-d3d11.patch | |
Diffstat (limited to 'vcpkg/ports/dawn/003-fix-d3d11.patch')
| -rw-r--r-- | vcpkg/ports/dawn/003-fix-d3d11.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/dawn/003-fix-d3d11.patch b/vcpkg/ports/dawn/003-fix-d3d11.patch new file mode 100644 index 0000000..bf20915 --- /dev/null +++ b/vcpkg/ports/dawn/003-fix-d3d11.patch @@ -0,0 +1,26 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5826595d6f..9521fcf6a7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -214,6 +214,12 @@ else() + set(TINT_DEFAULT_GLSL OFF) + endif() + ++if (DAWN_ENABLE_D3D11 OR DAWN_ENABLE_D3D12) ++ set(TINT_DEFAULT_HLSL ON) ++else() ++ set(TINT_DEFAULT_HLSL OFF) ++endif() ++ + option(TINT_ENABLE_INSTALL "Enable install step for Tint libraries" OFF) + option(TINT_BUILD_CMD_TOOLS "Build the Tint command line tools" ON) + +@@ -227,7 +233,7 @@ option(TINT_BUILD_SPV_READER "Build the SPIR-V input reader" ${DAWN_ENABLE_VULKA + option(TINT_BUILD_WGSL_READER "Build the WGSL input reader" ON) + option(TINT_BUILD_GLSL_WRITER "Build the GLSL output writer" ${TINT_DEFAULT_GLSL}) + option(TINT_BUILD_GLSL_VALIDATOR "Build the GLSL output validator" ON) +-option(TINT_BUILD_HLSL_WRITER "Build the HLSL output writer" ${DAWN_ENABLE_D3D12}) ++option(TINT_BUILD_HLSL_WRITER "Build the HLSL output writer" ${TINT_DEFAULT_HLSL}) + option(TINT_BUILD_MSL_WRITER "Build the MSL output writer" ${DAWN_ENABLE_METAL}) + option(TINT_BUILD_SPV_WRITER "Build the SPIR-V output writer" ${DAWN_ENABLE_VULKAN}) + option(TINT_BUILD_WGSL_WRITER "Build the WGSL output writer" ON) |