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

Method get_surface

framework/vulkan_sample.h:1104–1114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1102
1103template <vkb::BindingType bindingType>
1104inline typename VulkanSample<bindingType>::SurfaceType VulkanSample<bindingType>::get_surface() const
1105{
1106 if constexpr (bindingType == BindingType::Cpp)
1107 {
1108 return surface;
1109 }
1110 else
1111 {
1112 return static_cast<VkSurfaceKHR>(surface);
1113 }
1114}
1115
1116template <vkb::BindingType bindingType>
1117inline bool VulkanSample<bindingType>::has_device() const

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected