finish moving some stuff over to the extension
This commit is contained in:
@@ -9,8 +9,6 @@
|
||||
#include <uniforms/vulkan_uniform.h>
|
||||
#include <commands/command_pool/vulkan_command_pool.h>
|
||||
#include <buffers/vulkan_buffer.h>
|
||||
#include <sync/semaphore/vulkan_semaphore.h>
|
||||
#include <sync/fence/vulkan_fence.h>
|
||||
#include <present/vulkan_present.h>
|
||||
#include <submit/vulkan_submit.h>
|
||||
#include <output_device/vulkan_output_devices.h>
|
||||
@@ -18,7 +16,7 @@
|
||||
gnDeviceFunctions loadVulkanDeviceFunctions() {
|
||||
return (gnDeviceFunctions){
|
||||
._gnCreatePresentationQueue = createPresentationQueue,
|
||||
// ._gnPresentationQueueGetImageAsync = getPresentQueueImageAsync,
|
||||
._gnPresentationQueueGetImage = getVulkanPresentQueueImage,
|
||||
._gnDestroyPresentationQueue = destroyPresentationQueue,
|
||||
|
||||
._gnCreateShaderModule = createShaderModule,
|
||||
@@ -36,9 +34,6 @@ gnDeviceFunctions loadVulkanDeviceFunctions() {
|
||||
._gnCreateCommandPool = createCommandPool,
|
||||
._gnDestroyCommandPool = destroyCommandPool,
|
||||
|
||||
// ._gnCreateSemaphore = createSemaphore,
|
||||
// ._gnDestroySemaphore = destroySemaphore,
|
||||
|
||||
._gnCreateBuffer = createBuffer,
|
||||
._gnBufferData = bufferData,
|
||||
._gnBufferSubData = vulkanBufferSubData,
|
||||
@@ -57,11 +52,6 @@ gnDeviceFunctions loadVulkanDeviceFunctions() {
|
||||
._gnTextureData = textureData,
|
||||
._gnDestroyTexture = destroyTexture,
|
||||
|
||||
// ._gnCreateFence = createFence,
|
||||
// ._gnWaitForFence = waitForFence,
|
||||
// ._gnResetFence = resetFence,
|
||||
// ._gnDestroyFence = destroyFence,
|
||||
|
||||
._gnSubmit = submit,
|
||||
._gnPresent = present,
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
#include "loader/src/gryphn_instance_functions.h"
|
||||
#include "loader/src/gryphn_device_functions.h"
|
||||
#include "loader/src/gryphn_command_functions.h"
|
||||
#include "extensions/synchronization/loader/sync_functions.h"
|
||||
|
||||
gnInstanceFunctions loadVulkanInstanceFunctions();
|
||||
gnDeviceFunctions loadVulkanDeviceFunctions();
|
||||
gnCommandFunctions loadVulkanCommandFunctions();
|
||||
gnSyncExtFunctions loadVulkanSyncFunctions();
|
||||
|
18
projects/apis/vulkan/loader/vulkan_sync_loader.c
Normal file
18
projects/apis/vulkan/loader/vulkan_sync_loader.c
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "vulkan_loader.h"
|
||||
#include <sync/semaphore/vulkan_semaphore.h>
|
||||
#include <sync/fence/vulkan_fence.h>
|
||||
#include "presentation_queue/vulkan_presentation_queue.h"
|
||||
|
||||
gnSyncExtFunctions loadVulkanSyncFunctions() {
|
||||
return (gnSyncExtFunctions){
|
||||
._gnPresentationQueueGetImageAsync = getPresentQueueImageAsync,
|
||||
|
||||
._gnCreateSemaphore = createSemaphore,
|
||||
._gnDestroySemaphore = destroySemaphore,
|
||||
|
||||
._gnCreateFence = createFence,
|
||||
._gnWaitForFence = waitForFence,
|
||||
._gnResetFence = resetFence,
|
||||
._gnDestroyFence = destroyFence,
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user