From 16afbddeada7161e931dc261d3404bb5bbc1743d Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Thu, 17 Oct 2024 15:54:22 +1100 Subject: add .m on mac. log INFO and module name --- src/backend_mtl.m | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/backend_mtl.m (limited to 'src/backend_mtl.m') diff --git a/src/backend_mtl.m b/src/backend_mtl.m new file mode 100644 index 0000000..9a99e14 --- /dev/null +++ b/src/backend_mtl.m @@ -0,0 +1,22 @@ +#define GPU_METAL 1 + +#ifdef GPU_METAL +#include + +// Obj-C imports +#import +#import +#import +#import + +// --- RAL types +struct gpu_device { + id id; +}; + +struct gpu_swapchain { + int width, height; + CAMetalLayer* swapchain; +}; + +#endif \ No newline at end of file -- cgit v1.2.3-70-g09d2