Skip to content

Commit

Permalink
only enable wgpu on x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
westlicht committed Sep 23, 2024
1 parent 11be3df commit feae06c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,22 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
set(SLANG_RHI_HAS_VULKAN ON)
set(SLANG_RHI_HAS_METAL OFF)
set(SLANG_RHI_HAS_CUDA ON)
set(SLANG_RHI_HAS_WGPU ON)
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64|AMD64")
set(SLANG_RHI_HAS_WGPU ON)
else()
set(SLANG_RHI_HAS_WGPU OFF)
endif()
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(SLANG_RHI_HAS_D3D11 OFF)
set(SLANG_RHI_HAS_D3D12 OFF)
set(SLANG_RHI_HAS_VULKAN ON)
set(SLANG_RHI_HAS_METAL OFF)
set(SLANG_RHI_HAS_CUDA ON)
set(SLANG_RHI_HAS_WGPU ON)
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64|AMD64")
set(SLANG_RHI_HAS_WGPU ON)
else()
set(SLANG_RHI_HAS_WGPU OFF)
endif()
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(SLANG_RHI_HAS_D3D11 OFF)
set(SLANG_RHI_HAS_D3D12 OFF)
Expand Down

0 comments on commit feae06c

Please sign in to comment.