Changeset 52a02e6 in opengl-game for graphics-pipeline_vulkan.hpp
- Timestamp:
- Apr 26, 2020, 6:08:05 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master
- Children:
- 4a9416a
- Parents:
- 73a10ca
- git-author:
- Dmitry Portnoy <dmitry.portnoy@…> (04/26/20 17:55:49)
- git-committer:
- Dmitry Portnoy <dmitry.portnoy@…> (04/26/20 18:08:05)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
graphics-pipeline_vulkan.hpp
r73a10ca r52a02e6 49 49 // if it will never change, just pass it in the constructor and save it 50 50 // If it does change, I could add an updateSwapchainImageCount() function 51 GraphicsPipeline_Vulkan(VkP hysicalDevice physicalDevice, VkDevice device, VkRenderPass renderPass,52 V iewport viewport, vector<VkImage>& swapChainImages,51 GraphicsPipeline_Vulkan(VkPrimitiveTopology topology, VkPhysicalDevice physicalDevice, VkDevice device, 52 VkRenderPass renderPass, Viewport viewport, vector<VkImage>& swapChainImages, 53 53 size_t vertexCapacity, size_t indexCapacity, size_t objectCapacity); 54 54 ~GraphicsPipeline_Vulkan(); … … 86 86 87 87 private: 88 VkPrimitiveTopology topology; 88 89 VkPhysicalDevice physicalDevice; 89 90 VkDevice device; … … 136 137 template<class VertexType, class SSBOType> 137 138 GraphicsPipeline_Vulkan<VertexType, SSBOType>::GraphicsPipeline_Vulkan( 138 VkP hysicalDevice physicalDevice, VkDevice device,139 VkPrimitiveTopology topology, VkPhysicalDevice physicalDevice, VkDevice device, 139 140 VkRenderPass renderPass, Viewport viewport, vector<VkImage>& swapChainImages, 140 141 size_t vertexCapacity, size_t indexCapacity, size_t objectCapacity) { 142 this->topology = topology; 141 143 this->physicalDevice = physicalDevice; 142 144 this->device = device; … … 274 276 VkPipelineInputAssemblyStateCreateInfo inputAssembly = {}; 275 277 inputAssembly.sType = VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO; 276 inputAssembly.topology = VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;278 inputAssembly.topology = this->topology; 277 279 inputAssembly.primitiveRestartEnable = VK_FALSE; 278 280
Note:
See TracChangeset
for help on using the changeset viewer.