2017-09-01 20:58:42 +00:00
|
|
|
#ifndef __GSK_VULKAN_TEXT_PIPELINE_PRIVATE_H__
|
|
|
|
#define __GSK_VULKAN_TEXT_PIPELINE_PRIVATE_H__
|
|
|
|
|
|
|
|
#include <graphene.h>
|
|
|
|
|
|
|
|
#include "gskvulkanpipelineprivate.h"
|
|
|
|
#include "gskvulkanrendererprivate.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
typedef struct _GskVulkanTextPipelineLayout GskVulkanTextPipelineLayout;
|
|
|
|
|
|
|
|
#define GSK_TYPE_VULKAN_TEXT_PIPELINE (gsk_vulkan_text_pipeline_get_type ())
|
|
|
|
|
|
|
|
G_DECLARE_FINAL_TYPE (GskVulkanTextPipeline, gsk_vulkan_text_pipeline, GSK, VULKAN_TEXT_PIPELINE, GskVulkanPipeline)
|
|
|
|
|
2017-09-22 17:30:26 +00:00
|
|
|
GskVulkanPipeline * gsk_vulkan_text_pipeline_new (GdkVulkanContext *context,
|
|
|
|
VkPipelineLayout layout,
|
|
|
|
const char *shader_name,
|
|
|
|
VkRenderPass render_pass);
|
2017-09-01 20:58:42 +00:00
|
|
|
|
|
|
|
gsize gsk_vulkan_text_pipeline_count_vertex_data (GskVulkanTextPipeline *pipeline,
|
|
|
|
int num_instances);
|
|
|
|
void gsk_vulkan_text_pipeline_collect_vertex_data (GskVulkanTextPipeline *pipeline,
|
|
|
|
guchar *data,
|
|
|
|
GskVulkanRenderer *renderer,
|
|
|
|
const graphene_rect_t *rect,
|
|
|
|
PangoFont *font,
|
2017-10-27 21:13:40 +00:00
|
|
|
guint total_glyphs,
|
|
|
|
const PangoGlyphInfo *glyphs,
|
2017-09-01 20:58:42 +00:00
|
|
|
const GdkRGBA *color,
|
2019-05-19 02:08:29 +00:00
|
|
|
const graphene_point_t *offset,
|
2017-09-19 22:53:32 +00:00
|
|
|
guint start_glyph,
|
2017-10-28 17:13:31 +00:00
|
|
|
guint num_glyphs,
|
|
|
|
float scale);
|
2017-09-01 20:58:42 +00:00
|
|
|
gsize gsk_vulkan_text_pipeline_draw (GskVulkanTextPipeline *pipeline,
|
|
|
|
VkCommandBuffer command_buffer,
|
|
|
|
gsize offset,
|
|
|
|
gsize n_commands);
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GSK_VULKAN_TEXT_PIPELINE_PRIVATE_H__ */
|