mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
85e4e0672a
Allow to pass in semaphores to wait for before executing and to signal after executing the command buffer. This just exposes the capabilities of the underlying Vulkan api. Update all callers to pass no semaphores, for now. We will use this in the future.
27 lines
1.4 KiB
C
27 lines
1.4 KiB
C
#ifndef __GSK_VULKAN_COMMAND_POOL_PRIVATE_H__
|
|
#define __GSK_VULKAN_COMMAND_POOL_PRIVATE_H__
|
|
|
|
#include <gdk/gdk.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
typedef struct _GskVulkanCommandPool GskVulkanCommandPool;
|
|
|
|
GskVulkanCommandPool * gsk_vulkan_command_pool_new (GdkVulkanContext *context);
|
|
void gsk_vulkan_command_pool_free (GskVulkanCommandPool *self);
|
|
|
|
void gsk_vulkan_command_pool_reset (GskVulkanCommandPool *self);
|
|
|
|
VkCommandBuffer gsk_vulkan_command_pool_get_buffer (GskVulkanCommandPool *self);
|
|
void gsk_vulkan_command_pool_submit_buffer (GskVulkanCommandPool *self,
|
|
VkCommandBuffer buffer,
|
|
gsize wait_semaphore_count,
|
|
VkSemaphore *wait_semaphores,
|
|
gsize signal_semaphores_count,
|
|
VkSemaphore *signal_semaphores,
|
|
VkFence fence);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GSK_VULKAN_COMMAND_POOL_PRIVATE_H__ */
|