more loader redoing (for instance)
This commit is contained in:
@@ -3,10 +3,15 @@
|
||||
#include "surface/metal_surface.h"
|
||||
#include "devices/metal_output_devices.h"
|
||||
|
||||
gryphnInstanceFunctionLayers metalLoadAPILayer() {
|
||||
return (gryphnInstanceFunctionLayers) {
|
||||
.createInstance = { metalCreateInstance, NULL },
|
||||
.destroyInstance = { metalDestroyInstance, NULL }
|
||||
};
|
||||
}
|
||||
|
||||
gnInstanceFunctions loadMetalInstanceFunctions() {
|
||||
return (gnInstanceFunctions){
|
||||
._gnCreateInstance = createMetalInstance,
|
||||
._gnDestroyInstance = destroyMetalInstance,
|
||||
._gnGetPhysicalDevices = getMetalDevices,
|
||||
._gnPhysicalDeviceCanPresentToSurface = metalCanDevicePresent,
|
||||
._gnCreateOutputDevice = createMetalOutputDevice,
|
||||
|
@@ -5,6 +5,9 @@
|
||||
#include "extensions/synchronization/loader/sync_functions.h"
|
||||
#include "core/gryphn_extensions.h"
|
||||
|
||||
typedef struct gryphnInstanceFunctionLayers gryphnInstanceFunctionLayers;
|
||||
gryphnInstanceFunctionLayers metalLoadAPILayer();
|
||||
|
||||
gnInstanceFunctions loadMetalInstanceFunctions();
|
||||
gnDeviceFunctions loadMetalDeviceFunctions();
|
||||
gnCommandFunctions loadMetalCommandFunctions();
|
||||
|
Reference in New Issue
Block a user