finish moving some stuff over to the extension

This commit is contained in:
Gregory Wells
2025-07-09 20:00:44 -04:00
parent 414717d211
commit 6e22c85e43
14 changed files with 92 additions and 24 deletions

View File

@@ -40,7 +40,6 @@ gnInstanceFunctions loadFunctionLoaderInstanceFunctions() {
gnDeviceFunctions loadFunctionLoaderDeviceFunctions() {
return (gnDeviceFunctions){
._gnCreatePresentationQueue = checkCreatePresentationQueue,
// ._gnPresentationQueueGetImageAsync = checkPresentationQueueGetImageAsync,
._gnPresentationQueueGetImage = checkPresentationQueueGetImage,
._gnDestroyPresentationQueue = checkDestroyPresentationQueue,
@@ -59,9 +58,6 @@ gnDeviceFunctions loadFunctionLoaderDeviceFunctions() {
._gnCreateCommandPool = checkCreateCommandPool,
._gnDestroyCommandPool = checkDestroyCommandPool,
// ._gnCreateSemaphore = checkCreateSemaphore,
// ._gnDestroySemaphore = checkDestroySemaphore,
._gnCreateBuffer = checkCreateBuffer,
._gnBufferData = checkBufferData,
._gnBufferSubData = checkBufferSubData,
@@ -80,11 +76,6 @@ gnDeviceFunctions loadFunctionLoaderDeviceFunctions() {
._gnTextureData = checkTextureData,
._gnDestroyTexture = checkDestroyTexture,
// ._gnCreateFence = checkCreateFence,
// ._gnWaitForFence = checkWaitForFence,
// ._gnResetFence = checkResetFence,
// ._gnDestroyFence = checkDestroyFence,
._gnSubmit = checkSubmit,
._gnPresent = checkPresent,
@@ -112,3 +103,17 @@ gnCommandFunctions loadFunctionLoaderCommandFunctions() {
._gnCommandDrawIndexed = checkCommandDrawIndexed,
};
}
gnSyncExtFunctions loadFunctionLoaderSyncExtFunctions() {
return (gnSyncExtFunctions) {
._gnPresentationQueueGetImageAsync = checkPresentationQueueGetImageAsync,
._gnCreateSemaphore = checkCreateSemaphore,
._gnDestroySemaphore = checkDestroySemaphore,
._gnCreateFence = checkCreateFence,
._gnWaitForFence = checkWaitForFence,
._gnResetFence = checkResetFence,
._gnDestroyFence = checkDestroyFence,
};
}

View File

@@ -6,3 +6,6 @@
gnInstanceFunctions loadFunctionLoaderInstanceFunctions();
gnDeviceFunctions loadFunctionLoaderDeviceFunctions();
gnCommandFunctions loadFunctionLoaderCommandFunctions();
#include "extensions/synchronization/loader/sync_functions.h"
gnSyncExtFunctions loadFunctionLoaderSyncExtFunctions();