finish moving some stuff over to the extension
This commit is contained in:
@@ -2,8 +2,9 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS on)
|
||||
project(GryphnFunctionValidator)
|
||||
|
||||
file(GLOB_RECURSE SOURCE_FILES CONFIGURE_DEPENDS "src/*.c")
|
||||
file(GLOB_RECURSE EXT_FILES CONFIGURE_DEPENDS "extensions/*.c")
|
||||
file(GLOB_RECURSE LOADER_FILES CONFIGURE_DEPENDS "loader/*.c")
|
||||
add_library(GryphnFunctionValidator STATIC ${SOURCE_FILES} ${LOADER_FILES})
|
||||
add_library(GryphnFunctionValidator STATIC ${SOURCE_FILES} ${EXT_FILES} ${LOADER_FILES})
|
||||
target_include_directories(GryphnFunctionValidator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/)
|
||||
target_include_directories(GryphnFunctionValidator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../)
|
||||
target_include_directories(GryphnFunctionValidator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../core/src/)
|
||||
|
@@ -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,
|
||||
};
|
||||
}
|
||||
|
@@ -6,3 +6,6 @@
|
||||
gnInstanceFunctions loadFunctionLoaderInstanceFunctions();
|
||||
gnDeviceFunctions loadFunctionLoaderDeviceFunctions();
|
||||
gnCommandFunctions loadFunctionLoaderCommandFunctions();
|
||||
|
||||
#include "extensions/synchronization/loader/sync_functions.h"
|
||||
gnSyncExtFunctions loadFunctionLoaderSyncExtFunctions();
|
||||
|
Reference in New Issue
Block a user