redo metal loader

This commit is contained in:
Gregory Wells
2025-08-03 17:52:39 -04:00
parent b5cd8ad7db
commit 3157dc0342
5 changed files with 10 additions and 10 deletions

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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);

View File

@@ -5,7 +5,7 @@
#include "submit/metal_submit.h"
#include "present/metal_present.h"
gnSyncExtFunctions loadMetalSyncFunctions() {
gnSyncExtFunctions loadMetalSyncFunctions(void) {
return (gnSyncExtFunctions){
._gnPresentationQueueGetImageAsync = getMetalPresentQueueImageAsync,