gtk/gsk/vulkan/gskvulkanshaderopprivate.h

40 lines
1.6 KiB
C
Raw Normal View History

#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