VPP  0.7
A high-level modern C++ API for Vulkan
vppPipelineLayout.hpp
1 /*
2  Copyright 2016-2018 SOFT-ERG, Przemek Kuczmierczyk (www.softerg.com)
3  All rights reserved.
4 
5  Redistribution and use in source and binary forms, with or without modification,
6  are permitted provided that the following conditions are met:
7 
8  1. Redistributions of source code must retain the above copyright notice,
9  this list of conditions and the following disclaimer.
10 
11  2. Redistributions in binary form must reproduce the above copyright notice,
12  this list of conditions and the following disclaimer in the documentation
13  and/or other materials provided with the distribution.
14 
15  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
17  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
19  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
22  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
23  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
24  EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26 
27 // -----------------------------------------------------------------------------
28 namespace vpp {
29 // -----------------------------------------------------------------------------
30 
53 template< class DefinitionT >
55 {
56 public:
63  template< typename... Args >
64  PipelineLayout ( const Process& hProcess, const Device& hDevice, Args... args );
65 
70  VkPipelineLayout handle() const;
71 
75  const Device& device() const;
76 
82  DefinitionT& definition();
83 
87  const DefinitionT& definition() const;
88 };
89 
90 // -----------------------------------------------------------------------------
205 template< class DefinitionT >
207 {
208 public:
215  template< typename... Args >
216  ComputePipelineLayout ( const Device& hDevice, Args... args );
217 
221  VkPipelineLayout handle() const;
222 
226  const Device& device() const;
227 
232  DefinitionT& definition();
233 
237  const DefinitionT& definition() const;
238 };
239 
240 // -----------------------------------------------------------------------------
241 } // namespace vpp
242 // -----------------------------------------------------------------------------
DefinitionT & definition()
Retrieves the definition object. Useful to call resource binding methods defined in your pipeline con...
Represents logical rendering device.
Definition: vppDevice.hpp:49
ComputePipelineLayout(const Device &hDevice, Args... args)
Constructs a pipeline layout attached to specified Device, with optional list of user-specific argume...
PipelineLayout(const Process &hProcess, const Device &hDevice, Args... args)
Constructs a pipeline layout attached to specified Process and Device, with optional list of user-spe...
The VPP namespace.
Definition: main.hpp:1
Represents process graph node.
Definition: vppRenderGraphNodes.hpp:231
VkPipelineLayout handle() const
Retrieves Vulkan handle for the pipeline layout.
const Device & device() const
Retrieves the device.
Pipeline layout template for a compute pipeline. Use to create actual pipeline layout (Vulkan objects...
Definition: vppPipelineLayout.hpp:206
const Device & device() const
Retrieves the device.
VkPipelineLayout handle() const
Retrieves Vulkan handle for the pipeline layout.
Pipeline layout template for a graphics pipeline. Use to create actual pipeline layout (Vulkan object...
Definition: vppPipelineLayout.hpp:54
DefinitionT & definition()
Retrieves the definition object. Useful to call resource binding methods defined in your pipeline con...