MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / get_layout

Method get_layout

framework/rendering/render_target.h:341–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339
340template <vkb::BindingType bindingType>
341inline typename RenderTarget<bindingType>::ImageLayoutType RenderTarget<bindingType>::get_layout(uint32_t attachment) const
342{
343 if constexpr (bindingType == BindingType::Cpp)
344 {
345 return attachments[attachment].initial_layout;
346 }
347 else
348 {
349 return static_cast<VkImageLayout>(attachments[attachment].initial_layout);
350 }
351}
352
353template <vkb::BindingType bindingType>
354inline std::vector<uint32_t> const &RenderTarget<bindingType>::get_output_attachments() const

Callers 5

operator()Method · 0.80
transition_imagesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected