35 std::vector<std::shared_ptr<VertexBufferObject>> vertexInputs,
36 std::vector<std::shared_ptr<UniformBufferObject>> uniforms,
37 std::vector<std::pair<VkImageView, std::shared_ptr<Sampler> >> & textures,
38 const uint32_t concurrentFrames,
39 const VkPrimitiveTopology & topology,
40 const VkViewport & viewport,
41 const VkRect2D & scissor,
42 const VkPolygonMode & polygonMode,
43 const VkSampleCountFlagBits & msaaSamples,
44 const VkPipelineColorBlendStateCreateInfo & blending
54 vkDestroyDescriptorSetLayout(device.
getVkDevice(), uniformDescriptorSetLayout,
nullptr);
55 vkDestroyDescriptorSetLayout(device.
getVkDevice(), imageDescriptorSetLayout,
nullptr);
56 vkDestroyPipelineLayout(device.
getVkDevice(), pipelineLayout,
nullptr);
57 vkDestroyPipeline(device.
getVkDevice(), pipeline,
nullptr);
65 VkDescriptorSetLayout uniformDescriptorSetLayout, imageDescriptorSetLayout;
69 VkPipelineLayout pipelineLayout;
72 void createDescriptorSetLayouts
74 std::vector<std::shared_ptr<UniformBufferObject>> uniforms,
75 std::vector<std::pair<VkImageView, std::shared_ptr<Sampler> >> & textures,
76 const uint32_t concurrentFrames
79 void createDescriptorSets
81 std::vector<std::shared_ptr<UniformBufferObject>> uniforms,
82 std::vector<std::pair<VkImageView, std::shared_ptr<Sampler> >> & textures,
83 const uint32_t concurrentFrames