MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ to_vk_format()

vk::Format MayaFlux::Core::to_vk_format ( GraphicsSurfaceInfo::SurfaceFormat  fmt)
inline

Definition at line 25 of file VKEnumUtils.hpp.

26{
28 switch (fmt) {
29 case SF::B8G8R8A8_SRGB:
30 return vk::Format::eB8G8R8A8Srgb;
31 case SF::R8G8B8A8_SRGB:
32 return vk::Format::eR8G8B8A8Srgb;
33 case SF::B8G8R8A8_UNORM:
34 return vk::Format::eB8G8R8A8Unorm;
35 case SF::R8G8B8A8_UNORM:
36 return vk::Format::eR8G8B8A8Unorm;
37 case SF::R16G16B16A16_SFLOAT:
38 return vk::Format::eR16G16B16A16Sfloat;
39 case SF::A2B10G10R10_UNORM:
40 return vk::Format::eA2B10G10R10UnormPack32;
41 case SF::R32G32B32A32_SFLOAT:
42 return vk::Format::eR32G32B32A32Sfloat;
43 default:
44 return vk::Format::eB8G8R8A8Srgb;
45 }
46}
SurfaceFormat
Default pixel format for window surfaces (Vulkan-compatible)

Referenced by MayaFlux::Core::VKSwapchain::choose_surface_format(), MayaFlux::Kakshya::WindowAccessProcessor::on_attach(), and MayaFlux::Kakshya::WindowAccessProcessor::process().

+ Here is the caller graph for this function: