SPARK  0.1.0
A general purpose game engine written in C++.
Loading...
Searching...
No Matches
spark::render::IPipelineLayout Class Referenceabstract

Interface for pipeline layouts. More...

#include <Pipeline.h>

Inheritance diagram for spark::render::IPipelineLayout:
spark::render::PipelineLayout< VulkanDescriptorSetLayout, VulkanPushConstantsLayout > spark::render::PipelineLayout< DescriptorSetLayoutType, PushConstantsLayoutType > spark::render::vk::VulkanPipelineLayout

Public Member Functions

virtual const IDescriptorSetLayoutdescriptorSet (unsigned int space) const =0
 Gets the descriptor set layout bound to the given space.
 
std::vector< const IDescriptorSetLayout * > descriptorSets () const noexcept
 Gets all descriptor set layouts the pipeline has been initialized with.
 
virtual const IPushConstantsLayoutpushConstants () const noexcept=0
 Gets the push constants layout, or nullptr, if the pipeline does not use any push constants.
 

Detailed Description

Interface for pipeline layouts.

Member Function Documentation

◆ descriptorSet()

virtual const IDescriptorSetLayout & spark::render::IPipelineLayout::descriptorSet ( unsigned int space) const
nodiscardpure virtual

Gets the descriptor set layout bound to the given space.

Parameters
spaceThe space to request the descriptor set layout for.
Returns
A pointer to the IDescriptorSetLayout bound to the given space.

Implemented in spark::render::PipelineLayout< DescriptorSetLayoutType, PushConstantsLayoutType >, and spark::render::PipelineLayout< VulkanDescriptorSetLayout, VulkanPushConstantsLayout >.

◆ descriptorSets()

std::vector< const IDescriptorSetLayout * > spark::render::IPipelineLayout::descriptorSets ( ) const
inlinenodiscardnoexcept

Gets all descriptor set layouts the pipeline has been initialized with.

Returns
A std::vector of IDescriptorSetLayout pointers the pipeline has been initialized with.

◆ pushConstants()

virtual const IPushConstantsLayout * spark::render::IPipelineLayout::pushConstants ( ) const
nodiscardpure virtualnoexcept

Gets the push constants layout, or nullptr, if the pipeline does not use any push constants.

Returns
A pointer to the IPushConstantsLayout, or nullptr, if the pipeline does not use any push constants.

Implemented in spark::render::PipelineLayout< DescriptorSetLayoutType, PushConstantsLayoutType >, spark::render::PipelineLayout< VulkanDescriptorSetLayout, VulkanPushConstantsLayout >, and spark::render::vk::VulkanPipelineLayout.