Rename CMakeLists variables NXT_* to DAWN_*

This commit is contained in:
Corentin Wallez
2018-07-18 13:52:46 +02:00
committed by Corentin Wallez
parent 4828d92df3
commit f1ded9bea2
16 changed files with 110 additions and 110 deletions

View File

@@ -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
)

View File

@@ -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;