mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
vulkan: Add an argument to vfunc
We need this in the future.
This commit is contained in:
parent
b45a2025d9
commit
f53da409e5
@ -57,9 +57,10 @@ gsk_vulkan_op_get_pipeline (GskVulkanOp *op)
|
|||||||
|
|
||||||
void
|
void
|
||||||
gsk_vulkan_op_command (GskVulkanOp *op,
|
gsk_vulkan_op_command (GskVulkanOp *op,
|
||||||
|
GskVulkanRender *render,
|
||||||
VkPipelineLayout pipeline_layout,
|
VkPipelineLayout pipeline_layout,
|
||||||
VkCommandBuffer command_buffer)
|
VkCommandBuffer command_buffer)
|
||||||
{
|
{
|
||||||
op->op_class->command (op, pipeline_layout, command_buffer);
|
op->op_class->command (op, render, pipeline_layout, command_buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,6 +36,7 @@ struct _GskVulkanOpClass
|
|||||||
GskVulkanRender *render);
|
GskVulkanRender *render);
|
||||||
GskVulkanPipeline * (* get_pipeline) (GskVulkanOp *op);
|
GskVulkanPipeline * (* get_pipeline) (GskVulkanOp *op);
|
||||||
void (* command) (GskVulkanOp *op,
|
void (* command) (GskVulkanOp *op,
|
||||||
|
GskVulkanRender *render,
|
||||||
VkPipelineLayout pipeline_layout,
|
VkPipelineLayout pipeline_layout,
|
||||||
VkCommandBuffer command_buffer);
|
VkCommandBuffer command_buffer);
|
||||||
};
|
};
|
||||||
@ -63,6 +64,7 @@ void gsk_vulkan_op_reserve_descriptor_sets (GskVulk
|
|||||||
GskVulkanRender *render);
|
GskVulkanRender *render);
|
||||||
GskVulkanPipeline * gsk_vulkan_op_get_pipeline (GskVulkanOp *op);
|
GskVulkanPipeline * gsk_vulkan_op_get_pipeline (GskVulkanOp *op);
|
||||||
void gsk_vulkan_op_command (GskVulkanOp *op,
|
void gsk_vulkan_op_command (GskVulkanOp *op,
|
||||||
|
GskVulkanRender *render,
|
||||||
VkPipelineLayout pipeline_layout,
|
VkPipelineLayout pipeline_layout,
|
||||||
VkCommandBuffer command_buffer);
|
VkCommandBuffer command_buffer);
|
||||||
|
|
||||||
|
@ -2304,7 +2304,7 @@ gsk_vulkan_render_pass_draw_rect (GskVulkanRenderPass *self,
|
|||||||
gsk_vulkan_pipeline_get_pipeline (current_pipeline));
|
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
|
static void
|
||||||
gsk_vulkan_render_op_command (GskVulkanOp *op_,
|
gsk_vulkan_render_op_command (GskVulkanOp *op_,
|
||||||
|
GskVulkanRender *render,
|
||||||
VkPipelineLayout pipeline_layout,
|
VkPipelineLayout pipeline_layout,
|
||||||
VkCommandBuffer command_buffer)
|
VkCommandBuffer command_buffer)
|
||||||
{
|
{
|
||||||
|
@ -55,6 +55,7 @@ gsk_vulkan_scissor_op_get_pipeline (GskVulkanOp *op)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
gsk_vulkan_scissor_op_command (GskVulkanOp *op,
|
gsk_vulkan_scissor_op_command (GskVulkanOp *op,
|
||||||
|
GskVulkanRender *render,
|
||||||
VkPipelineLayout pipeline_layout,
|
VkPipelineLayout pipeline_layout,
|
||||||
VkCommandBuffer command_buffer)
|
VkCommandBuffer command_buffer)
|
||||||
{
|
{
|
||||||
|
@ -98,6 +98,7 @@ gsk_vulkan_texture_op_get_pipeline (GskVulkanOp *op)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
gsk_vulkan_texture_op_command (GskVulkanOp *op,
|
gsk_vulkan_texture_op_command (GskVulkanOp *op,
|
||||||
|
GskVulkanRender *render,
|
||||||
VkPipelineLayout pipeline_layout,
|
VkPipelineLayout pipeline_layout,
|
||||||
VkCommandBuffer command_buffer)
|
VkCommandBuffer command_buffer)
|
||||||
{
|
{
|
||||||
|
@ -70,6 +70,7 @@ gsk_vulkan_upload_op_get_pipeline (GskVulkanOp *op)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
gsk_vulkan_upload_op_command (GskVulkanOp *op,
|
gsk_vulkan_upload_op_command (GskVulkanOp *op,
|
||||||
|
GskVulkanRender *render,
|
||||||
VkPipelineLayout pipeline_layout,
|
VkPipelineLayout pipeline_layout,
|
||||||
VkCommandBuffer command_buffer)
|
VkCommandBuffer command_buffer)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user