mirror of
https://github.com/glfw/glfw.git
synced 2025-12-21 14:42:06 +00:00
Compare commits
1 Commits
8bbf3b9039
...
5369d16f2c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5369d16f2c |
@ -26,6 +26,7 @@ set(TINYCTHREAD "${GLFW_SOURCE_DIR}/deps/tinycthread.h"
|
|||||||
"${GLFW_SOURCE_DIR}/deps/tinycthread.c")
|
"${GLFW_SOURCE_DIR}/deps/tinycthread.c")
|
||||||
|
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
|
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
webgpu
|
webgpu
|
||||||
GIT_REPOSITORY https://github.com/eliemichel/WebGPU-distribution.git
|
GIT_REPOSITORY https://github.com/eliemichel/WebGPU-distribution.git
|
||||||
@ -35,7 +36,6 @@ FetchContent_Declare(
|
|||||||
EXCLUDE_FROM_ALL
|
EXCLUDE_FROM_ALL
|
||||||
)
|
)
|
||||||
FetchContent_MakeAvailable(webgpu)
|
FetchContent_MakeAvailable(webgpu)
|
||||||
message("${CMAKE_SYSTEM_PROCESSOR}")
|
|
||||||
|
|
||||||
add_executable(boing WIN32 MACOSX_BUNDLE boing.c ${ICON} ${GLAD_GL})
|
add_executable(boing WIN32 MACOSX_BUNDLE boing.c ${ICON} ${GLAD_GL})
|
||||||
add_executable(gears WIN32 MACOSX_BUNDLE gears.c ${ICON} ${GLAD_GL})
|
add_executable(gears WIN32 MACOSX_BUNDLE gears.c ${ICON} ${GLAD_GL})
|
||||||
|
|||||||
@ -2028,17 +2028,6 @@ typedef struct WGPUSurfaceSourceMetalLayer
|
|||||||
|
|
||||||
WGPUSurface _glfwCreateWindowWGPUSurfaceCocoa(WGPUInstance instance, _GLFWwindow* window)
|
WGPUSurface _glfwCreateWindowWGPUSurfaceCocoa(WGPUInstance instance, _GLFWwindow* window)
|
||||||
{
|
{
|
||||||
window->ns.layer = [CAMetalLayer layer];
|
|
||||||
if (!window->ns.layer)
|
|
||||||
{
|
|
||||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
|
||||||
"Cocoa: Failed to create layer for view");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (window->ns.scaleFramebuffer)
|
|
||||||
[window->ns.layer setContentsScale:[window->ns.object backingScaleFactor]];
|
|
||||||
|
|
||||||
[window->ns.view setLayer:window->ns.layer];
|
[window->ns.view setLayer:window->ns.layer];
|
||||||
[window->ns.view setWantsLayer:YES];
|
[window->ns.view setWantsLayer:YES];
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user