vOOlkan
An object oriented approach to Vulkan
InputAssembly.h
Go to the documentation of this file.
1#ifndef VULKAN_INPUTASSEMBLY
2#define VULKAN_INPUTASSEMBLY
3
4#include "vulkan/vulkan.h"
5
6namespace Vulkan::PipelineOptions { class InputAssembly; }
7
12public:
13 //TODO add options
14 InputAssembly() : inputAssembly{} {
15 inputAssembly.sType = VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO;
16 inputAssembly.topology = VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;
17 inputAssembly.primitiveRestartEnable = VK_FALSE;
18 }
19
20
21 InputAssembly(VkPipelineInputAssemblyStateCreateInfo baseInputAssembly) : inputAssembly{ baseInputAssembly } {}
22
23
24 const VkPipelineInputAssemblyStateCreateInfo& operator+() const {
25 return inputAssembly;
26 }
27
28
29private:
30 VkPipelineInputAssemblyStateCreateInfo inputAssembly;
31};
32
33
34#endif
Describes how the vertices will be connected. e.g. triangle list, triangle fan, .....
Definition: InputAssembly.h:11
InputAssembly()
Definition: InputAssembly.h:14
const VkPipelineInputAssemblyStateCreateInfo & operator+() const
Definition: InputAssembly.h:24
InputAssembly(VkPipelineInputAssemblyStateCreateInfo baseInputAssembly)
Definition: InputAssembly.h:21
Definition: Attachment.h:11