query metal devices

This commit is contained in:
Gregory Wells
2025-09-09 09:31:09 -04:00
parent c5297cb17b
commit 9244b82f79
5 changed files with 40 additions and 35 deletions

View File

@@ -6,6 +6,7 @@
gryphnInstanceFunctionLayers metalLoadAPILayer(void) {
return (gryphnInstanceFunctionLayers) {
.createInstance = metalCreateInstance,
.queryDevices = metalQueryDevices,
.destroyInstance = metalDestroyInstance,
.next = NULL
};
@@ -13,7 +14,6 @@ gryphnInstanceFunctionLayers metalLoadAPILayer(void) {
gnInstanceFunctions loadMetalInstanceFunctions(void) {
return (gnInstanceFunctions){
._gnGetPhysicalDevices = getMetalDevices,
._gnPhysicalDeviceCanPresentToSurface = metalCanDevicePresent,
._gnCreateOutputDevice = createMetalOutputDevice,
._gnDestroyOutputDevice = destroyMetalOutputDevice,