mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 08:27:05 +00:00
Rename CMakeLists variables NXT_* to DAWN_*
This commit is contained in:
committed by
Corentin Wallez
parent
4828d92df3
commit
f1ded9bea2
@@ -60,7 +60,7 @@ list(APPEND UNITTEST_SOURCES
|
||||
${TESTS_DIR}/UnittestsMain.cpp
|
||||
)
|
||||
|
||||
if (NXT_ENABLE_D3D12)
|
||||
if (DAWN_ENABLE_D3D12)
|
||||
list(APPEND UNITTEST_SOURCES
|
||||
${UNITTESTS_DIR}/d3d12/CopySplitTests.cpp
|
||||
)
|
||||
|
||||
@@ -392,16 +392,16 @@ std::ostream &operator<<(std::ostream& stream, BackendType backend) {
|
||||
namespace detail {
|
||||
bool IsBackendAvailable(BackendType type) {
|
||||
switch (type) {
|
||||
#if defined(NXT_ENABLE_BACKEND_D3D12)
|
||||
#if defined(DAWN_ENABLE_BACKEND_D3D12)
|
||||
case D3D12Backend:
|
||||
#endif
|
||||
#if defined(NXT_ENABLE_BACKEND_METAL)
|
||||
#if defined(DAWN_ENABLE_BACKEND_METAL)
|
||||
case MetalBackend:
|
||||
#endif
|
||||
#if defined(NXT_ENABLE_BACKEND_OPENGL)
|
||||
#if defined(DAWN_ENABLE_BACKEND_OPENGL)
|
||||
case OpenGLBackend:
|
||||
#endif
|
||||
#if defined(NXT_ENABLE_BACKEND_VULKAN)
|
||||
#if defined(DAWN_ENABLE_BACKEND_VULKAN)
|
||||
case VulkanBackend:
|
||||
#endif
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user