rename to projects (DOES NOT COMPILE)
This commit is contained in:
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