diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-10-17 15:54:22 +1100 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-10-17 15:54:22 +1100 |
commit | 16afbddeada7161e931dc261d3404bb5bbc1743d (patch) | |
tree | e75db4d668c6a9ebfd07e4dd4d1fdabb66a95896 /src/backend_mtl.m | |
parent | ff96a533014174d0857872f86f1536a06089f3d2 (diff) |
add .m on mac. log INFO and module name
Diffstat (limited to 'src/backend_mtl.m')
-rw-r--r-- | src/backend_mtl.m | 22 |
1 files changed, 22 insertions, 0 deletions
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 <celeritas.h> + +// Obj-C imports +#import <Foundation/Foundation.h> +#import <Metal/Metal.h> +#import <MetalKit/MetalKit.h> +#import <QuartzCore/CAMetalLayer.h> + +// --- RAL types +struct gpu_device { + id<MTLDevice> id; +}; + +struct gpu_swapchain { + int width, height; + CAMetalLayer* swapchain; +}; + +#endif
\ No newline at end of file |