mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 05:50:10 +00:00
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:
parent
cef87b102c
commit
05c9f3442c
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user