2016-12-08 12:26:36 +00:00
|
|
|
#ifndef __GSK_VULKAN_RENDER_PASS_PRIVATE_H__
|
|
|
|
#define __GSK_VULKAN_RENDER_PASS_PRIVATE_H__
|
|
|
|
|
|
|
|
#include <gdk/gdk.h>
|
|
|
|
#include <gsk/gskrendernode.h>
|
|
|
|
|
2016-12-18 00:45:07 +00:00
|
|
|
#include "gsk/gskvulkanbufferprivate.h"
|
2016-12-08 12:26:36 +00:00
|
|
|
#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);
|
|
|
|
|
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,
|
2016-12-12 23:11:06 +00:00
|
|
|
const graphene_matrix_t*mvp,
|
2016-12-08 12:26:36 +00:00
|
|
|
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-08 12:26:36 +00:00
|
|
|
|
2016-12-18 00:45:07 +00:00
|
|
|
gsize gsk_vulkan_render_pass_count_vertex_data (GskVulkanRenderPass *self);
|
|
|
|
gsize gsk_vulkan_render_pass_collect_vertex_data (GskVulkanRenderPass *self,
|
|
|
|
guchar *data,
|
2016-12-08 12:26:36 +00:00
|
|
|
gsize offset,
|
|
|
|
gsize total);
|
|
|
|
|
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,
|
2016-12-18 00:45:07 +00:00
|
|
|
GskVulkanBuffer *vertex_buffer,
|
2016-12-14 07:00:58 +00:00
|
|
|
GskVulkanPipelineLayout *layout,
|
2016-12-08 16:55:32 +00:00
|
|
|
VkCommandBuffer command_buffer);
|
2016-12-08 12:26:36 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GSK_VULKAN_RENDER_PASS_PRIVATE_H__ */
|