Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f558ede authored by Courtney Goeltzenleuchter's avatar Courtney Goeltzenleuchter
Browse files

Add support for VK_EXT_swapchain_colorspace

Test: compile Vulkan CTS test TBD
Change-Id: Ibfe3e5e29727132ded59bb647cea05826ba484e6
parent 2d7a1261
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -936,6 +936,18 @@ enum VkPresentModeKHR {
@extension("VK_KHR_surface")
enum VkColorSpaceKHR {
    VK_COLORSPACE_SRGB_NONLINEAR_KHR                        = 0x00000000,
    VK_COLOR_SPACE_DISPLAY_P3_LINEAR_EXT 	 	    = 1000104001,
    VK_COLOR_SPACE_DISPLAY_P3_NONLINEAR_EXT                 = 1000104002,
    VK_COLOR_SPACE_SCRGB_LINEAR_EXT                         = 1000104003,
    VK_COLOR_SPACE_SCRGB_NONLINEAR_EXT                      = 1000104004,
    VK_COLOR_SPACE_DCI_P3_LINEAR_EXT                        = 1000104005,
    VK_COLOR_SPACE_DCI_P3_NONLINEAR_EXT                     = 1000104006,
    VK_COLOR_SPACE_BT709_LINEAR_EXT                         = 1000104007,
    VK_COLOR_SPACE_BT709_NONLINEAR_EXT                      = 1000104008,
    VK_COLOR_SPACE_BT2020_LINEAR_EXT                        = 1000104009,
    VK_COLOR_SPACE_BT2020_NONLINEAR_EXT                     = 1000104010,
    VK_COLOR_SPACE_ADOBERGB_LINEAR_EXT                      = 1000104011,
    VK_COLOR_SPACE_ADOBERGB_NONLINEAR_EXT                   = 1000104012,
}

@extension("VK_EXT_debug_report")
+12 −0
Original line number Diff line number Diff line
@@ -3217,6 +3217,18 @@ VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSurfaceKHR)

typedef enum VkColorSpaceKHR {
    VK_COLOR_SPACE_SRGB_NONLINEAR_KHR = 0,
    VK_COLOR_SPACE_DISPLAY_P3_LINEAR_EXT = 1000104001,
    VK_COLOR_SPACE_DISPLAY_P3_NONLINEAR_EXT = 1000104002,
    VK_COLOR_SPACE_SCRGB_LINEAR_EXT = 1000104003,
    VK_COLOR_SPACE_SCRGB_NONLINEAR_EXT = 1000104004,
    VK_COLOR_SPACE_DCI_P3_LINEAR_EXT = 1000104005,
    VK_COLOR_SPACE_DCI_P3_NONLINEAR_EXT = 1000104006,
    VK_COLOR_SPACE_BT709_LINEAR_EXT = 1000104007,
    VK_COLOR_SPACE_BT709_NONLINEAR_EXT = 1000104008,
    VK_COLOR_SPACE_BT2020_LINEAR_EXT = 1000104009,
    VK_COLOR_SPACE_BT2020_NONLINEAR_EXT = 1000104010,
    VK_COLOR_SPACE_ADOBERGB_LINEAR_EXT = 1000104011,
    VK_COLOR_SPACE_ADOBERGB_NONLINEAR_EXT = 1000104012,
    VK_COLOR_SPACE_BEGIN_RANGE_KHR = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR,
    VK_COLOR_SPACE_END_RANGE_KHR = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR,
    VK_COLOR_SPACE_RANGE_SIZE_KHR = (VK_COLOR_SPACE_SRGB_NONLINEAR_KHR - VK_COLOR_SPACE_SRGB_NONLINEAR_KHR + 1),