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

Method get_format

framework/rendering/render_context.h:530–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528
529template <vkb::BindingType bindingType>
530inline typename RenderContext<bindingType>::FormatType RenderContext<bindingType>::get_format() const
531{
532 vk::Format format = swapchain ? swapchain->get_format() : DEFAULT_VK_FORMAT;
533 if constexpr (bindingType == BindingType::Cpp)
534 {
535 return format;
536 }
537 else
538 {
539 return static_cast<VkFormat>(format);
540 }
541}
542
543template <vkb::BindingType bindingType>
544inline vkb::rendering::RenderFrame<bindingType> &RenderContext<bindingType>::get_last_rendered_frame()

Callers 7

prepareMethod · 0.45
recreateMethod · 0.45
recreate_swapchainMethod · 0.45
drawMethod · 0.45
initMethod · 0.45
drawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected