SLProject
4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
metal_layer.mm
Go to the documentation of this file.
1
#include <AppKit/AppKit.h>
2
#include <QuartzCore/CAMetalLayer.h>
3
4
extern
"C"
id
createMetalLayer
(NSWindow*
window
)
5
{
6
[
window
.contentView setWantsLayer:YES];
7
id
metalLayer = [CAMetalLayer layer];
8
[
window
.contentView setLayer:metalLayer];
9
10
return
metalLayer;
11
}
window
static GLFWwindow * window
The global glfw window handle.
Definition:
AppGLFW.cpp:35
createMetalLayer
id createMetalLayer(NSWindow *window)
Definition:
metal_layer.mm:4
apps
app_webgpu
metal_layer.mm
Generated by
1.9.1