vulkan: Rename function

The function name gsk_vulkan_render_get_pipeline() had been used for
GskVulkanPipeline. Since those are gone now, we can use that name for
VkPipelines.
This commit is contained in:
Benjamin Otte 2023-07-08 20:16:39 +02:00
parent cef87b102c
commit 05c9f3442c
3 changed files with 11 additions and 11 deletions

View File

@ -357,11 +357,11 @@ gsk_vulkan_render_upload (GskVulkanRender *self)
}
VkPipeline
gsk_vulkan_render_create_pipeline (GskVulkanRender *self,
const GskVulkanOpClass *op_class,
const char *clip_type,
VkFormat format,
VkRenderPass render_pass)
gsk_vulkan_render_get_pipeline (GskVulkanRender *self,
const GskVulkanOpClass *op_class,
const char *clip_type,
VkFormat format,
VkRenderPass render_pass)
{
PipelineCacheKey cache_key;
VkPipeline pipeline;

View File

@ -1449,11 +1449,11 @@ gsk_vulkan_render_pass_draw_rect (GskVulkanRenderPass *self,
(op->op_class != current_pipeline_class ||
current_pipeline_clip_type != op->clip_type))
{
current_pipeline = gsk_vulkan_render_create_pipeline (render,
op->op_class,
op->clip_type,
gsk_vulkan_image_get_vk_format (self->target),
self->render_pass);
current_pipeline = gsk_vulkan_render_get_pipeline (render,
op->op_class,
op->clip_type,
gsk_vulkan_image_get_vk_format (self->target),
self->render_pass);
vkCmdBindPipeline (command_buffer,
VK_PIPELINE_BIND_POINT_GRAPHICS,
current_pipeline);

View File

@ -30,7 +30,7 @@ GskRenderer * gsk_vulkan_render_get_renderer (GskVulk
void gsk_vulkan_render_upload (GskVulkanRender *self);
VkPipeline gsk_vulkan_render_create_pipeline (GskVulkanRender *self,
VkPipeline gsk_vulkan_render_get_pipeline (GskVulkanRender *self,
const GskVulkanOpClass *op_class,
const char *clip_type,
VkFormat format,