From 3157dc03420323c7ba8ba654a36631f03c188199 Mon Sep 17 00:00:00 2001 From: Gregory Wells Date: Sun, 3 Aug 2025 17:52:39 -0400 Subject: [PATCH] redo metal loader --- projects/apis/metal/loader/metal_command_loader.m | 2 +- projects/apis/metal/loader/metal_device_loader.m | 2 +- projects/apis/metal/loader/metal_instance_loader.m | 4 ++-- projects/apis/metal/loader/metal_loader.h | 10 +++++----- projects/apis/metal/loader/metal_sync_loader.m | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/projects/apis/metal/loader/metal_command_loader.m b/projects/apis/metal/loader/metal_command_loader.m index eca1735..f85011f 100644 --- a/projects/apis/metal/loader/metal_command_loader.m +++ b/projects/apis/metal/loader/metal_command_loader.m @@ -2,7 +2,7 @@ #include "commands/command_buffer/metal_command_buffer.h" #include "commands/commands/metal_commands.h" -gnCommandFunctions loadMetalCommandFunctions() { +gnCommandFunctions loadMetalCommandFunctions(void) { return (gnCommandFunctions){ ._gnCommandPoolAllocateCommandBuffers = allocateMetalCommandBuffers, ._gnBeginCommandBuffer = beginMetalCommandBuffer, diff --git a/projects/apis/metal/loader/metal_device_loader.m b/projects/apis/metal/loader/metal_device_loader.m index ad64c04..3c3bfa5 100644 --- a/projects/apis/metal/loader/metal_device_loader.m +++ b/projects/apis/metal/loader/metal_device_loader.m @@ -14,7 +14,7 @@ #include "submit/metal_submit.h" #include "present/metal_present.h" -gnDeviceFunctions loadMetalDeviceFunctions() { +gnDeviceFunctions loadMetalDeviceFunctions(void) { return (gnDeviceFunctions){ ._gnCreatePresentationQueue = createMetalPresentationQueue, ._gnPresentationQueueGetImage = getMetalPresentQueueImage, diff --git a/projects/apis/metal/loader/metal_instance_loader.m b/projects/apis/metal/loader/metal_instance_loader.m index 86857a4..bf81280 100644 --- a/projects/apis/metal/loader/metal_instance_loader.m +++ b/projects/apis/metal/loader/metal_instance_loader.m @@ -3,7 +3,7 @@ #include "surface/metal_surface.h" #include "devices/metal_output_devices.h" -gryphnInstanceFunctionLayers metalLoadAPILayer() { +gryphnInstanceFunctionLayers metalLoadAPILayer(void) { return (gryphnInstanceFunctionLayers) { .createInstance = metalCreateInstance, .destroyInstance = metalDestroyInstance, @@ -11,7 +11,7 @@ gryphnInstanceFunctionLayers metalLoadAPILayer() { }; } -gnInstanceFunctions loadMetalInstanceFunctions() { +gnInstanceFunctions loadMetalInstanceFunctions(void) { return (gnInstanceFunctions){ ._gnGetPhysicalDevices = getMetalDevices, ._gnPhysicalDeviceCanPresentToSurface = metalCanDevicePresent, diff --git a/projects/apis/metal/loader/metal_loader.h b/projects/apis/metal/loader/metal_loader.h index c02bfc1..adc744c 100644 --- a/projects/apis/metal/loader/metal_loader.h +++ b/projects/apis/metal/loader/metal_loader.h @@ -6,11 +6,11 @@ #include "core/gryphn_extensions.h" typedef struct gryphnInstanceFunctionLayers gryphnInstanceFunctionLayers; -gryphnInstanceFunctionLayers metalLoadAPILayer(); +gryphnInstanceFunctionLayers metalLoadAPILayer(void); -gnInstanceFunctions loadMetalInstanceFunctions(); -gnDeviceFunctions loadMetalDeviceFunctions(); -gnCommandFunctions loadMetalCommandFunctions(); -gnSyncExtFunctions loadMetalSyncFunctions(); +gnInstanceFunctions loadMetalInstanceFunctions(void); +gnDeviceFunctions loadMetalDeviceFunctions(void); +gnCommandFunctions loadMetalCommandFunctions(void); +gnSyncExtFunctions loadMetalSyncFunctions(void); gnBool metalIsExtensionSupported(gnExtension extension); diff --git a/projects/apis/metal/loader/metal_sync_loader.m b/projects/apis/metal/loader/metal_sync_loader.m index f46c3f9..64ce566 100644 --- a/projects/apis/metal/loader/metal_sync_loader.m +++ b/projects/apis/metal/loader/metal_sync_loader.m @@ -5,7 +5,7 @@ #include "submit/metal_submit.h" #include "present/metal_present.h" -gnSyncExtFunctions loadMetalSyncFunctions() { +gnSyncExtFunctions loadMetalSyncFunctions(void) { return (gnSyncExtFunctions){ ._gnPresentationQueueGetImageAsync = getMetalPresentQueueImageAsync,