redo metal loader
This commit is contained in:
@@ -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,
|
||||
|
@@ -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,
|
||||
|
@@ -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,
|
||||
|
@@ -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);
|
||||
|
@@ -5,7 +5,7 @@
|
||||
#include "submit/metal_submit.h"
|
||||
#include "present/metal_present.h"
|
||||
|
||||
gnSyncExtFunctions loadMetalSyncFunctions() {
|
||||
gnSyncExtFunctions loadMetalSyncFunctions(void) {
|
||||
return (gnSyncExtFunctions){
|
||||
._gnPresentationQueueGetImageAsync = getMetalPresentQueueImageAsync,
|
||||
|
||||
|
Reference in New Issue
Block a user