2023-03-31 19:11:10 +00:00
|
|
|
#pragma once
|
2016-12-18 01:18:01 +00:00
|
|
|
|
|
|
|
#include <graphene.h>
|
|
|
|
|
|
|
|
#include "gskvulkanpipelineprivate.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
typedef struct _GskVulkanColorPipelineLayout GskVulkanColorPipelineLayout;
|
|
|
|
|
|
|
|
#define GSK_TYPE_VULKAN_COLOR_PIPELINE (gsk_vulkan_color_pipeline_get_type ())
|
|
|
|
|
|
|
|
G_DECLARE_FINAL_TYPE (GskVulkanColorPipeline, gsk_vulkan_color_pipeline, GSK, VULKAN_COLOR_PIPELINE, GskVulkanPipeline)
|
|
|
|
|
2017-09-22 17:30:26 +00:00
|
|
|
GskVulkanPipeline * gsk_vulkan_color_pipeline_new (GdkVulkanContext *context,
|
|
|
|
VkPipelineLayout layout,
|
2016-12-18 01:18:01 +00:00
|
|
|
const char *shader_name,
|
|
|
|
VkRenderPass render_pass);
|
|
|
|
|
|
|
|
void gsk_vulkan_color_pipeline_collect_vertex_data (GskVulkanColorPipeline *pipeline,
|
|
|
|
guchar *data,
|
2023-05-10 14:40:22 +00:00
|
|
|
const graphene_point_t *offset,
|
2016-12-18 05:54:48 +00:00
|
|
|
const graphene_rect_t *rect,
|
|
|
|
const GdkRGBA *color);
|
2016-12-18 01:18:01 +00:00
|
|
|
gsize gsk_vulkan_color_pipeline_draw (GskVulkanColorPipeline *pipeline,
|
|
|
|
VkCommandBuffer command_buffer,
|
|
|
|
gsize offset,
|
|
|
|
gsize n_commands);
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|