summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-09-19 15:10:54 +0800
committerGitHub <noreply@github.com>2024-09-19 00:10:54 -0700
commitb7617d2ec45a09ce12d0004b986dd5377a81e8bf (patch)
treece714373a79babb5826821c20ca2f4189d8cf972
parentccc310fa4e8096cda8a6c127aacc1a1fa9d8503a (diff)
Fix dx on vk with rhi (#5086)
Requires this PR https://github.com/shader-slang/slang-rhi/pull/40 Co-authored-by: Yong He <yonghe@outlook.com>
-rw-r--r--external/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt
index e72e41607..d482d59e8 100644
--- a/external/CMakeLists.txt
+++ b/external/CMakeLists.txt
@@ -70,6 +70,9 @@ target_include_directories(imgui INTERFACE "${CMAKE_CURRENT_LIST_DIR}/imgui")
set(SLANG_RHI_SLANG_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/include)
set(SLANG_RHI_SLANG_BINARY_DIR ${CMAKE_BINARY_DIR})
set(SLANG_RHI_BUILD_TESTS OFF)
+if(SLANG_ENABLE_DX_ON_VK)
+ set(SLANG_RHI_HAS_D3D12 ON)
+endif()
add_subdirectory(slang-rhi)
# Tidy things up: