MCPcopy Create free account
hub / github.com/Ipotrick/Daxa / choose_swapchain_surface_format

Method choose_swapchain_surface_format

src/cpp_wrapper.cpp:802–816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

800 }
801
802 auto Device::choose_swapchain_surface_format(ChooseSwapchainSurfaceFormatInfo const & info) const -> SurfaceFormat
803 {
804 VkSurfaceFormatKHR out_format = {};
805 check_result(
806 daxa_dvc_choose_swapchain_surface_format(
807 rc_cast<daxa_Device>(object),
808 reinterpret_cast<daxa_ChooseSwapchainSurfaceFormatInfo const*>(&info),
809 &out_format),
810 "failed to choose swapchain surface format");
811
812 return SurfaceFormat{
813 .format = std::bit_cast<Format>(out_format.format),
814 .color_space = std::bit_cast<ColorSpace>(out_format.colorSpace),
815 };
816 }
817
818 auto Device::inc_refcnt(ImplHandle const * object) -> u64
819 {

Callers

nothing calls this directly

Calls 2

check_resultFunction · 0.85

Tested by

no test coverage detected