2023-03-31 19:11:10 +00:00
|
|
|
#pragma once
|
2017-09-03 13:54:47 +00:00
|
|
|
|
|
|
|
#include <graphene.h>
|
|
|
|
|
|
|
|
#include "gskvulkanpipelineprivate.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
typedef struct _GskVulkanBlurPipelineLayout GskVulkanBlurPipelineLayout;
|
|
|
|
|
|
|
|
#define GSK_TYPE_VULKAN_BLUR_PIPELINE (gsk_vulkan_blur_pipeline_get_type ())
|
|
|
|
|
|
|
|
G_DECLARE_FINAL_TYPE (GskVulkanBlurPipeline, gsk_vulkan_blur_pipeline, GSK, VULKAN_BLUR_PIPELINE, GskVulkanPipeline)
|
|
|
|
|
2017-09-22 17:30:26 +00:00
|
|
|
GskVulkanPipeline * gsk_vulkan_blur_pipeline_new (GdkVulkanContext *context,
|
|
|
|
VkPipelineLayout layout,
|
2017-09-03 13:54:47 +00:00
|
|
|
const char *shader_name,
|
|
|
|
VkRenderPass render_pass);
|
|
|
|
|
|
|
|
void gsk_vulkan_blur_pipeline_collect_vertex_data (GskVulkanBlurPipeline *pipeline,
|
|
|
|
guchar *data,
|
2023-05-23 03:08:13 +00:00
|
|
|
guint32 tex_id[2],
|
2023-05-10 14:40:22 +00:00
|
|
|
const graphene_point_t *offset,
|
2017-09-03 13:54:47 +00:00
|
|
|
const graphene_rect_t *rect,
|
2017-10-01 23:17:39 +00:00
|
|
|
const graphene_rect_t *tex_rect,
|
2017-09-03 13:54:47 +00:00
|
|
|
double radius);
|
|
|
|
gsize gsk_vulkan_blur_pipeline_draw (GskVulkanBlurPipeline *pipeline,
|
|
|
|
VkCommandBuffer command_buffer,
|
|
|
|
gsize offset,
|
|
|
|
gsize n_commands);
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|