MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Hpp / createFramebuffers

Function createFramebuffers

samples/utils/utils.cpp:99–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 }
98
99 std::vector<vk::Framebuffer> createFramebuffers( vk::Device const & device,
100 vk::RenderPass & renderPass,
101 std::vector<vk::ImageView> const & imageViews,
102 vk::ImageView const & depthImageView,
103 vk::Extent2D const & extent )
104 {
105 vk::ImageView attachments[2];
106 attachments[1] = depthImageView;
107
108 vk::FramebufferCreateInfo framebufferCreateInfo(
109 vk::FramebufferCreateFlags(), renderPass, depthImageView ? 2 : 1, attachments, extent.width, extent.height, 1 );
110 std::vector<vk::Framebuffer> framebuffers;
111 framebuffers.reserve( imageViews.size() );
112 for ( auto const & view : imageViews )
113 {
114 attachments[0] = view;
115 framebuffers.push_back( device.createFramebuffer( framebufferCreateInfo ) );
116 }
117
118 return framebuffers;
119 }
120
121 vk::Pipeline createGraphicsPipeline( vk::Device const & device,
122 vk::PipelineCache const & pipelineCache,

Callers 15

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
makeSharedFramebuffersFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected