redo metal loader
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
#include "commands/command_buffer/metal_command_buffer.h"
|
#include "commands/command_buffer/metal_command_buffer.h"
|
||||||
#include "commands/commands/metal_commands.h"
|
#include "commands/commands/metal_commands.h"
|
||||||
|
|
||||||
gnCommandFunctions loadMetalCommandFunctions() {
|
gnCommandFunctions loadMetalCommandFunctions(void) {
|
||||||
return (gnCommandFunctions){
|
return (gnCommandFunctions){
|
||||||
._gnCommandPoolAllocateCommandBuffers = allocateMetalCommandBuffers,
|
._gnCommandPoolAllocateCommandBuffers = allocateMetalCommandBuffers,
|
||||||
._gnBeginCommandBuffer = beginMetalCommandBuffer,
|
._gnBeginCommandBuffer = beginMetalCommandBuffer,
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
#include "submit/metal_submit.h"
|
#include "submit/metal_submit.h"
|
||||||
#include "present/metal_present.h"
|
#include "present/metal_present.h"
|
||||||
|
|
||||||
gnDeviceFunctions loadMetalDeviceFunctions() {
|
gnDeviceFunctions loadMetalDeviceFunctions(void) {
|
||||||
return (gnDeviceFunctions){
|
return (gnDeviceFunctions){
|
||||||
._gnCreatePresentationQueue = createMetalPresentationQueue,
|
._gnCreatePresentationQueue = createMetalPresentationQueue,
|
||||||
._gnPresentationQueueGetImage = getMetalPresentQueueImage,
|
._gnPresentationQueueGetImage = getMetalPresentQueueImage,
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
#include "surface/metal_surface.h"
|
#include "surface/metal_surface.h"
|
||||||
#include "devices/metal_output_devices.h"
|
#include "devices/metal_output_devices.h"
|
||||||
|
|
||||||
gryphnInstanceFunctionLayers metalLoadAPILayer() {
|
gryphnInstanceFunctionLayers metalLoadAPILayer(void) {
|
||||||
return (gryphnInstanceFunctionLayers) {
|
return (gryphnInstanceFunctionLayers) {
|
||||||
.createInstance = metalCreateInstance,
|
.createInstance = metalCreateInstance,
|
||||||
.destroyInstance = metalDestroyInstance,
|
.destroyInstance = metalDestroyInstance,
|
||||||
@@ -11,7 +11,7 @@ gryphnInstanceFunctionLayers metalLoadAPILayer() {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
gnInstanceFunctions loadMetalInstanceFunctions() {
|
gnInstanceFunctions loadMetalInstanceFunctions(void) {
|
||||||
return (gnInstanceFunctions){
|
return (gnInstanceFunctions){
|
||||||
._gnGetPhysicalDevices = getMetalDevices,
|
._gnGetPhysicalDevices = getMetalDevices,
|
||||||
._gnPhysicalDeviceCanPresentToSurface = metalCanDevicePresent,
|
._gnPhysicalDeviceCanPresentToSurface = metalCanDevicePresent,
|
||||||
|
@@ -6,11 +6,11 @@
|
|||||||
#include "core/gryphn_extensions.h"
|
#include "core/gryphn_extensions.h"
|
||||||
|
|
||||||
typedef struct gryphnInstanceFunctionLayers gryphnInstanceFunctionLayers;
|
typedef struct gryphnInstanceFunctionLayers gryphnInstanceFunctionLayers;
|
||||||
gryphnInstanceFunctionLayers metalLoadAPILayer();
|
gryphnInstanceFunctionLayers metalLoadAPILayer(void);
|
||||||
|
|
||||||
gnInstanceFunctions loadMetalInstanceFunctions();
|
gnInstanceFunctions loadMetalInstanceFunctions(void);
|
||||||
gnDeviceFunctions loadMetalDeviceFunctions();
|
gnDeviceFunctions loadMetalDeviceFunctions(void);
|
||||||
gnCommandFunctions loadMetalCommandFunctions();
|
gnCommandFunctions loadMetalCommandFunctions(void);
|
||||||
gnSyncExtFunctions loadMetalSyncFunctions();
|
gnSyncExtFunctions loadMetalSyncFunctions(void);
|
||||||
|
|
||||||
gnBool metalIsExtensionSupported(gnExtension extension);
|
gnBool metalIsExtensionSupported(gnExtension extension);
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
#include "submit/metal_submit.h"
|
#include "submit/metal_submit.h"
|
||||||
#include "present/metal_present.h"
|
#include "present/metal_present.h"
|
||||||
|
|
||||||
gnSyncExtFunctions loadMetalSyncFunctions() {
|
gnSyncExtFunctions loadMetalSyncFunctions(void) {
|
||||||
return (gnSyncExtFunctions){
|
return (gnSyncExtFunctions){
|
||||||
._gnPresentationQueueGetImageAsync = getMetalPresentQueueImageAsync,
|
._gnPresentationQueueGetImageAsync = getMetalPresentQueueImageAsync,
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user