From 5ff6481310c2fe5249b2d1675e8022a1d3cd297f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 22 Sep 2017 10:13:25 -0400 Subject: [PATCH] Add a getter to the pipeline layout directly from the pipeline This is a step towards allowing multiple pipeline layouts. --- gsk/gskvulkanpipeline.c | 8 ++++++++ gsk/gskvulkanpipelineprivate.h | 1 + 2 files changed, 9 insertions(+) diff --git a/gsk/gskvulkanpipeline.c b/gsk/gskvulkanpipeline.c index 5863d20e35..ce41190f67 100644 --- a/gsk/gskvulkanpipeline.c +++ b/gsk/gskvulkanpipeline.c @@ -186,6 +186,14 @@ gsk_vulkan_pipeline_get_pipeline (GskVulkanPipeline *self) return priv->pipeline; } +VkPipelineLayout +gsk_vulkan_pipeline_get_pipeline_layout (GskVulkanPipeline *self) +{ + GskVulkanPipelinePrivate *priv = gsk_vulkan_pipeline_get_instance_private (self); + + return priv->layout->pipeline_layout; +} + /*** GskVulkanPipelineLayout ***/ GskVulkanPipelineLayout * diff --git a/gsk/gskvulkanpipelineprivate.h b/gsk/gskvulkanpipelineprivate.h index 62550b2bc2..825fa15ecd 100644 --- a/gsk/gskvulkanpipelineprivate.h +++ b/gsk/gskvulkanpipelineprivate.h @@ -54,6 +54,7 @@ GskVulkanPipeline * gsk_vulkan_pipeline_new_full (GType VkBlendFactor dstBlendFactor); VkPipeline gsk_vulkan_pipeline_get_pipeline (GskVulkanPipeline *self); +VkPipelineLayout gsk_vulkan_pipeline_get_pipeline_layout (GskVulkanPipeline *self); G_END_DECLS