Add a getter to the pipeline layout directly from the pipeline

This is a step towards allowing multiple pipeline layouts.
This commit is contained in:
Matthias Clasen 2017-09-22 10:13:25 -04:00
parent 4c7a51f88a
commit 5ff6481310
2 changed files with 9 additions and 0 deletions

View File

@ -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 *

View File

@ -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