mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 23:56:16 +00:00
Rename src/common macros NXT_* to DAWN_*
This commit is contained in:
committed by
Corentin Wallez
parent
33ca49614d
commit
83a9c9d6d9
@@ -99,7 +99,7 @@ namespace utils {
|
||||
class OpenGLBinding : public BackendBinding {
|
||||
public:
|
||||
void SetupGLFWWindowHints() override {
|
||||
#if defined(NXT_PLATFORM_APPLE)
|
||||
#if defined(DAWN_PLATFORM_APPLE)
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 1);
|
||||
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GLFW_TRUE);
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
|
||||
#include "common/Platform.h"
|
||||
|
||||
#if defined(NXT_PLATFORM_WINDOWS)
|
||||
#if defined(DAWN_PLATFORM_WINDOWS)
|
||||
# include <Windows.h>
|
||||
#elif defined(NXT_PLATFORM_POSIX)
|
||||
#elif defined(DAWN_PLATFORM_POSIX)
|
||||
# include <unistd.h>
|
||||
#else
|
||||
# error "Unsupported platform."
|
||||
@@ -24,11 +24,11 @@
|
||||
|
||||
namespace utils {
|
||||
|
||||
#if defined(NXT_PLATFORM_WINDOWS)
|
||||
#if defined(DAWN_PLATFORM_WINDOWS)
|
||||
void USleep(unsigned int usecs) {
|
||||
Sleep(static_cast<DWORD>(usecs / 1000));
|
||||
}
|
||||
#elif defined(NXT_PLATFORM_POSIX)
|
||||
#elif defined(DAWN_PLATFORM_POSIX)
|
||||
void USleep(unsigned int usecs) {
|
||||
usleep(usecs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user