Skip to content

Commit dec438c

Browse files
committed
vulkan_display: remove is_yCbCr_format
identically defined in vulkan_context.hpp
1 parent 0486fa4 commit dec438c

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/video_display/vulkan/vulkan_display.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ using namespace vulkan_display_detail;
5757
using namespace vulkan_display;
5858

5959
namespace {
60-
constexpr bool is_yCbCr_format(vk::Format format) {
61-
auto f = static_cast<VkFormat>(format);
62-
return VK_FORMAT_G8B8G8R8_422_UNORM <= f && f <= VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM;
63-
}
64-
6560
vk::PresentModeKHR get_present_mode(bool vsync_enabled, bool tearing_permitted){
6661
using Mode = vk::PresentModeKHR;
6762
if (vsync_enabled){

0 commit comments

Comments
 (0)