mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 21:40:19 +00:00
40 lines
1.6 KiB
C
40 lines
1.6 KiB
C
|
#pragma once
|
||
|
|
||
|
#include "gskvulkanopprivate.h"
|
||
|
|
||
|
G_BEGIN_DECLS
|
||
|
|
||
|
typedef struct _GskVulkanShaderOp GskVulkanShaderOp;
|
||
|
typedef struct _GskVulkanShaderOpClass GskVulkanShaderOpClass;
|
||
|
|
||
|
struct _GskVulkanShaderOp
|
||
|
{
|
||
|
GskVulkanOp parent_op;
|
||
|
|
||
|
const /* interned */ char *clip_type;
|
||
|
gsize vertex_offset;
|
||
|
};
|
||
|
|
||
|
struct _GskVulkanShaderOpClass
|
||
|
{
|
||
|
GskVulkanOpClass parent_class;
|
||
|
|
||
|
const char * shader_name;
|
||
|
const VkPipelineVertexInputStateCreateInfo *vertex_input_state;
|
||
|
};
|
||
|
|
||
|
gsize gsk_vulkan_shader_op_count_vertex_data (GskVulkanOp *op,
|
||
|
gsize n_bytes);
|
||
|
GskVulkanOp * gsk_vulkan_shader_op_command_n (GskVulkanOp *op,
|
||
|
GskVulkanRender *render,
|
||
|
VkRenderPass render_pass,
|
||
|
VkCommandBuffer command_buffer,
|
||
|
gsize instance_scale);
|
||
|
GskVulkanOp * gsk_vulkan_shader_op_command (GskVulkanOp *op,
|
||
|
GskVulkanRender *render,
|
||
|
VkRenderPass render_pass,
|
||
|
VkCommandBuffer command_buffer);
|
||
|
|
||
|
G_END_DECLS
|
||
|
|