mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 00:47:13 +00:00
Rename CMakeLists variables NXT_* to DAWN_*
This commit is contained in:
committed by
Corentin Wallez
parent
4828d92df3
commit
f1ded9bea2
@@ -18,19 +18,19 @@
|
||||
|
||||
namespace utils {
|
||||
|
||||
#if defined(NXT_ENABLE_BACKEND_D3D12)
|
||||
#if defined(DAWN_ENABLE_BACKEND_D3D12)
|
||||
BackendBinding* CreateD3D12Binding();
|
||||
#endif
|
||||
#if defined(NXT_ENABLE_BACKEND_METAL)
|
||||
#if defined(DAWN_ENABLE_BACKEND_METAL)
|
||||
BackendBinding* CreateMetalBinding();
|
||||
#endif
|
||||
#if defined(NXT_ENABLE_BACKEND_NULL)
|
||||
#if defined(DAWN_ENABLE_BACKEND_NULL)
|
||||
BackendBinding* CreateNullBinding();
|
||||
#endif
|
||||
#if defined(NXT_ENABLE_BACKEND_OPENGL)
|
||||
#if defined(DAWN_ENABLE_BACKEND_OPENGL)
|
||||
BackendBinding* CreateOpenGLBinding();
|
||||
#endif
|
||||
#if defined(NXT_ENABLE_BACKEND_VULKAN)
|
||||
#if defined(DAWN_ENABLE_BACKEND_VULKAN)
|
||||
BackendBinding* CreateVulkanBinding();
|
||||
#endif
|
||||
|
||||
@@ -40,27 +40,27 @@ namespace utils {
|
||||
|
||||
BackendBinding* CreateBinding(BackendType type) {
|
||||
switch (type) {
|
||||
#if defined(NXT_ENABLE_BACKEND_D3D12)
|
||||
#if defined(DAWN_ENABLE_BACKEND_D3D12)
|
||||
case BackendType::D3D12:
|
||||
return CreateD3D12Binding();
|
||||
#endif
|
||||
|
||||
#if defined(NXT_ENABLE_BACKEND_METAL)
|
||||
#if defined(DAWN_ENABLE_BACKEND_METAL)
|
||||
case BackendType::Metal:
|
||||
return CreateMetalBinding();
|
||||
#endif
|
||||
|
||||
#if defined(NXT_ENABLE_BACKEND_NULL)
|
||||
#if defined(DAWN_ENABLE_BACKEND_NULL)
|
||||
case BackendType::Null:
|
||||
return CreateNullBinding();
|
||||
#endif
|
||||
|
||||
#if defined(NXT_ENABLE_BACKEND_OPENGL)
|
||||
#if defined(DAWN_ENABLE_BACKEND_OPENGL)
|
||||
case BackendType::OpenGL:
|
||||
return CreateOpenGLBinding();
|
||||
#endif
|
||||
|
||||
#if defined(NXT_ENABLE_BACKEND_VULKAN)
|
||||
#if defined(DAWN_ENABLE_BACKEND_VULKAN)
|
||||
case BackendType::Vulkan:
|
||||
return CreateVulkanBinding();
|
||||
#endif
|
||||
|
||||
@@ -23,31 +23,31 @@ list(APPEND UTILS_SOURCES
|
||||
${UTILS_DIR}/SystemUtils.h
|
||||
)
|
||||
|
||||
if (NXT_ENABLE_D3D12)
|
||||
if (DAWN_ENABLE_D3D12)
|
||||
list(APPEND UTILS_SOURCES
|
||||
${UTILS_DIR}/D3D12Binding.cpp
|
||||
)
|
||||
endif()
|
||||
|
||||
if (NXT_ENABLE_METAL)
|
||||
if (DAWN_ENABLE_METAL)
|
||||
list(APPEND UTILS_SOURCES
|
||||
${UTILS_DIR}/MetalBinding.mm
|
||||
)
|
||||
endif()
|
||||
|
||||
if (NXT_ENABLE_NULL)
|
||||
if (DAWN_ENABLE_NULL)
|
||||
list(APPEND UTILS_SOURCES
|
||||
${UTILS_DIR}/NullBinding.cpp
|
||||
)
|
||||
endif()
|
||||
|
||||
if (NXT_ENABLE_OPENGL)
|
||||
if (DAWN_ENABLE_OPENGL)
|
||||
list(APPEND UTILS_SOURCES
|
||||
${UTILS_DIR}/OpenGLBinding.cpp
|
||||
)
|
||||
endif()
|
||||
|
||||
if (NXT_ENABLE_VULKAN)
|
||||
if (DAWN_ENABLE_VULKAN)
|
||||
list(APPEND UTILS_SOURCES
|
||||
${UTILS_DIR}/VulkanBinding.cpp
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user