vulkan: Add an argument to vfunc

We need this in the future.
This commit is contained in:
Benjamin Otte 2023-06-25 22:16:37 +02:00
parent b45a2025d9
commit f53da409e5
6 changed files with 9 additions and 2 deletions

View File

@ -57,9 +57,10 @@ gsk_vulkan_op_get_pipeline (GskVulkanOp *op)
void
gsk_vulkan_op_command (GskVulkanOp *op,
GskVulkanRender *render,
VkPipelineLayout pipeline_layout,
VkCommandBuffer command_buffer)
{
op->op_class->command (op, pipeline_layout, command_buffer);
op->op_class->command (op, render, pipeline_layout, command_buffer);
}

View File

@ -36,6 +36,7 @@ struct _GskVulkanOpClass
GskVulkanRender *render);
GskVulkanPipeline * (* get_pipeline) (GskVulkanOp *op);
void (* command) (GskVulkanOp *op,
GskVulkanRender *render,
VkPipelineLayout pipeline_layout,
VkCommandBuffer command_buffer);
};
@ -63,6 +64,7 @@ void gsk_vulkan_op_reserve_descriptor_sets (GskVulk
GskVulkanRender *render);
GskVulkanPipeline * gsk_vulkan_op_get_pipeline (GskVulkanOp *op);
void gsk_vulkan_op_command (GskVulkanOp *op,
GskVulkanRender *render,
VkPipelineLayout pipeline_layout,
VkCommandBuffer command_buffer);

View File

@ -2304,7 +2304,7 @@ gsk_vulkan_render_pass_draw_rect (GskVulkanRenderPass *self,
gsk_vulkan_pipeline_get_pipeline (current_pipeline));
}
gsk_vulkan_op_command (op, pipeline_layout, command_buffer);
gsk_vulkan_op_command (op, render, pipeline_layout, command_buffer);
}
}
@ -2346,6 +2346,7 @@ gsk_vulkan_render_op_get_pipeline (GskVulkanOp *op_)
static void
gsk_vulkan_render_op_command (GskVulkanOp *op_,
GskVulkanRender *render,
VkPipelineLayout pipeline_layout,
VkCommandBuffer command_buffer)
{

View File

@ -55,6 +55,7 @@ gsk_vulkan_scissor_op_get_pipeline (GskVulkanOp *op)
static void
gsk_vulkan_scissor_op_command (GskVulkanOp *op,
GskVulkanRender *render,
VkPipelineLayout pipeline_layout,
VkCommandBuffer command_buffer)
{

View File

@ -98,6 +98,7 @@ gsk_vulkan_texture_op_get_pipeline (GskVulkanOp *op)
static void
gsk_vulkan_texture_op_command (GskVulkanOp *op,
GskVulkanRender *render,
VkPipelineLayout pipeline_layout,
VkCommandBuffer command_buffer)
{

View File

@ -70,6 +70,7 @@ gsk_vulkan_upload_op_get_pipeline (GskVulkanOp *op)
static void
gsk_vulkan_upload_op_command (GskVulkanOp *op,
GskVulkanRender *render,
VkPipelineLayout pipeline_layout,
VkCommandBuffer command_buffer)
{