2023-03-31 19:11:10 +00:00
|
|
|
#pragma once
|
2016-12-08 12:26:36 +00:00
|
|
|
|
|
|
|
#include <gdk/gdk.h>
|
|
|
|
#include <gsk/gskrendernode.h>
|
|
|
|
|
2018-01-06 14:36:55 +00:00
|
|
|
#include "gskvulkanbufferprivate.h"
|
|
|
|
#include "gskvulkanrenderprivate.h"
|
2017-09-28 00:55:14 +00:00
|
|
|
#include "gsk/gskprivate.h"
|
2016-12-08 12:26:36 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
2017-09-28 00:56:01 +00:00
|
|
|
GskVulkanRenderPass * gsk_vulkan_render_pass_new (GdkVulkanContext *context,
|
|
|
|
GskVulkanImage *target,
|
2023-05-10 00:46:57 +00:00
|
|
|
const graphene_vec2_t *scale,
|
|
|
|
const graphene_rect_t *viewport,
|
2017-09-28 00:56:01 +00:00
|
|
|
cairo_region_t *clip,
|
|
|
|
VkSemaphore signal_semaphore);
|
|
|
|
|
2016-12-08 12:26:36 +00:00
|
|
|
void gsk_vulkan_render_pass_free (GskVulkanRenderPass *self);
|
|
|
|
|
2016-12-12 23:11:06 +00:00
|
|
|
void gsk_vulkan_render_pass_add (GskVulkanRenderPass *self,
|
2016-12-08 12:26:36 +00:00
|
|
|
GskVulkanRender *render,
|
|
|
|
GskRenderNode *node);
|
|
|
|
|
|
|
|
void gsk_vulkan_render_pass_upload (GskVulkanRenderPass *self,
|
2016-12-08 16:55:32 +00:00
|
|
|
GskVulkanRender *render,
|
2016-12-17 03:22:44 +00:00
|
|
|
GskVulkanUploader *uploader);
|
2016-12-09 01:55:47 +00:00
|
|
|
void gsk_vulkan_render_pass_reserve_descriptor_sets (GskVulkanRenderPass *self,
|
|
|
|
GskVulkanRender *render);
|
2016-12-08 12:26:36 +00:00
|
|
|
void gsk_vulkan_render_pass_draw (GskVulkanRenderPass *self,
|
2016-12-08 16:55:32 +00:00
|
|
|
GskVulkanRender *render,
|
2023-05-12 18:49:31 +00:00
|
|
|
VkPipelineLayout pipeline_layout,
|
2016-12-08 16:55:32 +00:00
|
|
|
VkCommandBuffer command_buffer);
|
2017-09-28 00:56:01 +00:00
|
|
|
gsize gsk_vulkan_render_pass_get_wait_semaphores (GskVulkanRenderPass *self,
|
|
|
|
VkSemaphore **semaphores);
|
|
|
|
gsize gsk_vulkan_render_pass_get_signal_semaphores (GskVulkanRenderPass *self,
|
|
|
|
VkSemaphore **semaphores);
|
2016-12-08 12:26:36 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|