load all instance functions

This commit is contained in:
Greg Wells
2025-06-29 08:43:58 -04:00
parent bb6b1c175d
commit 1a4101bf4d
9 changed files with 45 additions and 25 deletions

View File

@@ -1,14 +1,10 @@
#include <gryphn/gryphn.h>
#include <gryphn/gryphn_utils.h>
#include "metal_instance.h"
// #include "bridge/metal_bridge.h"
gnReturnCode gnCreateInstanceFn(gnInstanceHandle instance, gnInstanceInfo instanceInfo) {
// metal instances are kinda useless
gnReturnCode createMetalInstance(gnInstanceHandle instance, gnInstanceInfo instanceInfo) {
if (instance->instance == NULL) instance->instance = malloc(sizeof(gnPlatformInstance));
return GN_SUCCESS;
}
void gnDestroyInstanceFn(gnInstanceHandle instance) {
void destroyMetalInstance(gnInstance instance) {
free(instance->instance);
}