mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 06:21:14 +00:00
8ad0539cf7
We already move the descriptor set layout out of it, so we can just as well keep the pipeline layouts in the render object as well, and get rid of this extra object. Update all callers.
46 lines
2.8 KiB
C
46 lines
2.8 KiB
C
#ifndef __GSK_VULKAN_RENDER_PASS_PRIVATE_H__
|
|
#define __GSK_VULKAN_RENDER_PASS_PRIVATE_H__
|
|
|
|
#include <gdk/gdk.h>
|
|
#include <gsk/gskrendernode.h>
|
|
|
|
#include "gsk/gskvulkanbufferprivate.h"
|
|
#include "gsk/gskvulkanrenderprivate.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
typedef struct _GskVulkanRenderPass GskVulkanRenderPass;
|
|
|
|
GskVulkanRenderPass * gsk_vulkan_render_pass_new (GdkVulkanContext *context);
|
|
void gsk_vulkan_render_pass_free (GskVulkanRenderPass *self);
|
|
|
|
void gsk_vulkan_render_pass_add (GskVulkanRenderPass *self,
|
|
GskVulkanRender *render,
|
|
const graphene_matrix_t*mvp,
|
|
const graphene_rect_t *viewport,
|
|
GskRenderNode *node);
|
|
|
|
void gsk_vulkan_render_pass_upload (GskVulkanRenderPass *self,
|
|
GskVulkanRender *render,
|
|
GskVulkanUploader *uploader);
|
|
|
|
gsize gsk_vulkan_render_pass_count_vertex_data (GskVulkanRenderPass *self);
|
|
gsize gsk_vulkan_render_pass_collect_vertex_data (GskVulkanRenderPass *self,
|
|
GskVulkanRender *render,
|
|
guchar *data,
|
|
gsize offset,
|
|
gsize total);
|
|
|
|
void gsk_vulkan_render_pass_reserve_descriptor_sets (GskVulkanRenderPass *self,
|
|
GskVulkanRender *render);
|
|
void gsk_vulkan_render_pass_draw (GskVulkanRenderPass *self,
|
|
GskVulkanRender *render,
|
|
GskVulkanBuffer *vertex_buffer,
|
|
guint layout_count,
|
|
VkPipelineLayout *pipeline_layout,
|
|
VkCommandBuffer command_buffer);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GSK_VULKAN_RENDER_PASS_PRIVATE_H__ */
|