2016-12-07 13:50:52 +00:00
|
|
|
#ifndef __GSK_VULKAN_RENDER_PRIVATE_H__
|
|
|
|
#define __GSK_VULKAN_RENDER_PRIVATE_H__
|
|
|
|
|
|
|
|
#include <gdk/gdk.h>
|
2016-12-08 12:26:36 +00:00
|
|
|
#include <gsk/gskrendernode.h>
|
|
|
|
|
|
|
|
#include "gsk/gskvulkanimageprivate.h"
|
|
|
|
#include "gsk/gskvulkanpipelineprivate.h"
|
2016-12-07 13:50:52 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
typedef struct _GskVulkanRender GskVulkanRender;
|
2016-12-08 12:26:36 +00:00
|
|
|
typedef struct _GskVulkanVertex GskVulkanVertex;
|
2016-12-07 13:50:52 +00:00
|
|
|
|
2016-12-08 12:26:36 +00:00
|
|
|
struct _GskVulkanVertex
|
|
|
|
{
|
|
|
|
float x;
|
|
|
|
float y;
|
|
|
|
float tex_x;
|
|
|
|
float tex_y;
|
2016-12-07 13:50:52 +00:00
|
|
|
};
|
|
|
|
|
2016-12-08 16:46:08 +00:00
|
|
|
GskVulkanRender * gsk_vulkan_render_new (GskRenderer *renderer,
|
2016-12-07 13:50:52 +00:00
|
|
|
GdkVulkanContext *context,
|
|
|
|
VkCommandPool command_pool);
|
2016-12-08 16:46:08 +00:00
|
|
|
void gsk_vulkan_render_free (GskVulkanRender *self);
|
2016-12-08 12:26:36 +00:00
|
|
|
|
2016-12-08 16:55:32 +00:00
|
|
|
GskRenderer * gsk_vulkan_render_get_renderer (GskVulkanRender *self);
|
|
|
|
|
2016-12-08 12:26:36 +00:00
|
|
|
void gsk_vulkan_render_add_cleanup_image (GskVulkanRender *self,
|
|
|
|
GskVulkanImage *image);
|
|
|
|
|
|
|
|
void gsk_vulkan_render_add_node (GskVulkanRender *self,
|
|
|
|
GskRenderNode *node);
|
|
|
|
|
|
|
|
void gsk_vulkan_render_upload (GskVulkanRender *self);
|
|
|
|
|
|
|
|
void gsk_vulkan_render_draw (GskVulkanRender *self,
|
|
|
|
GskVulkanPipeline *pipeline,
|
|
|
|
VkRenderPass render_pass,
|
|
|
|
VkFramebuffer framebuffer,
|
|
|
|
VkDescriptorSet descriptor_set,
|
|
|
|
VkSampler sampler);
|
2016-12-07 13:50:52 +00:00
|
|
|
|
|
|
|
void gsk_vulkan_render_submit (GskVulkanRender *self,
|
|
|
|
VkFence fence);
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GSK_VULKAN_RENDER_PRIVATE_H__ */
|