rename to projects (DOES NOT COMPILE)
This commit is contained in:
7
projects/apis/metal/src/instance/metal_instance.h
Normal file
7
projects/apis/metal/src/instance/metal_instance.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
#include <Metal/MTLRenderPipeline.h>
|
||||
#include <AppKit/AppKit.h>
|
||||
|
||||
typedef struct gnPlatformInstance_t {
|
||||
NSView* metalContentView;
|
||||
} gnPlatformInstance;
|
||||
14
projects/apis/metal/src/instance/metal_instance.m
Normal file
14
projects/apis/metal/src/instance/metal_instance.m
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <gryphn/gryphn.h>
|
||||
#include <gryphn/gryphn_utils.h>
|
||||
#include "metal_instance.h"
|
||||
// #include "bridge/metal_bridge.h"
|
||||
|
||||
|
||||
gnReturnCode gnCreateInstanceFn(gnInstanceHandle instance, gnInstanceInfo instanceInfo) {
|
||||
if (instance->instance == NULL) instance->instance = malloc(sizeof(gnPlatformInstance));
|
||||
return GN_SUCCESS;
|
||||
}
|
||||
|
||||
void gnDestroyInstanceFn(gnInstanceHandle instance) {
|
||||
free(instance->instance);
|
||||
}
|
||||
Reference in New Issue
Block a user