You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Vulkan may optionally be included in a Windows build. Exclude until we have an explicit use case that requires it.
671
-
set(DAWN_ENABLE_VULKAN OFFCACHEBOOL"" FORCE)
679
+
if ((NOT onnxruntime_ENABLE_DAWN_BACKEND_VULKAN) AND (NOT onnxruntime_ENABLE_DAWN_BACKEND_D3D12))
680
+
message(FATAL_ERROR "At least one of onnxruntime_ENABLE_DAWN_BACKEND_VULKAN or onnxruntime_ENABLE_DAWN_BACKEND_D3D12 must be enabled when using Dawn on Windows.")
681
+
endif()
682
+
if (onnxruntime_ENABLE_DAWN_BACKEND_VULKAN)
683
+
set(DAWN_ENABLE_VULKAN ONCACHEBOOL"" FORCE)
684
+
set(TINT_BUILD_SPV_WRITER ONCACHEBOOL"" FORCE)
685
+
else()
686
+
set(DAWN_ENABLE_VULKAN OFFCACHEBOOL"" FORCE)
687
+
endif()
688
+
if (onnxruntime_ENABLE_DAWN_BACKEND_D3D12)
689
+
set(DAWN_ENABLE_D3D12 ONCACHEBOOL"" FORCE)
690
+
else()
691
+
set(DAWN_ENABLE_D3D12 OFFCACHEBOOL"" FORCE)
692
+
endif()
672
693
# We are currently always using the D3D12 backend.
0 commit comments