mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
a/vk: Re-order functions [NFC]
This commit is contained in:
parent
f08a4abb3f
commit
217874507b
|
@ -429,36 +429,6 @@ vk_sharing_mode_string(VkSharingMode code)
|
|||
}
|
||||
}
|
||||
|
||||
XRT_CHECK_RESULT const char *
|
||||
vk_format_feature_string(VkFormatFeatureFlagBits code)
|
||||
{
|
||||
switch (code) {
|
||||
ENUM_TO_STR(VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT);
|
||||
ENUM_TO_STR(VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT);
|
||||
ENUM_TO_STR(VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT);
|
||||
ENUM_TO_STR(VK_FORMAT_FEATURE_TRANSFER_SRC_BIT);
|
||||
ENUM_TO_STR(VK_FORMAT_FEATURE_TRANSFER_DST_BIT);
|
||||
ENUM_TO_STR(VK_FORMAT_R5G6B5_UNORM_PACK16);
|
||||
default: return "UNKNOWN FORMAT FEATURE";
|
||||
}
|
||||
}
|
||||
|
||||
XRT_CHECK_RESULT const char *
|
||||
xrt_swapchain_usage_string(enum xrt_swapchain_usage_bits code)
|
||||
{
|
||||
switch (code) {
|
||||
ENUM_TO_STR(XRT_SWAPCHAIN_USAGE_COLOR);
|
||||
ENUM_TO_STR(XRT_SWAPCHAIN_USAGE_DEPTH_STENCIL);
|
||||
ENUM_TO_STR(XRT_SWAPCHAIN_USAGE_UNORDERED_ACCESS);
|
||||
ENUM_TO_STR(XRT_SWAPCHAIN_USAGE_TRANSFER_SRC);
|
||||
ENUM_TO_STR(XRT_SWAPCHAIN_USAGE_TRANSFER_DST);
|
||||
ENUM_TO_STR(XRT_SWAPCHAIN_USAGE_SAMPLED);
|
||||
ENUM_TO_STR(XRT_SWAPCHAIN_USAGE_MUTABLE_FORMAT);
|
||||
ENUM_TO_STR(XRT_SWAPCHAIN_USAGE_INPUT_ATTACHMENT);
|
||||
default: return "UNKNOWN SWAPCHAIN USAGE";
|
||||
}
|
||||
}
|
||||
|
||||
XRT_CHECK_RESULT const char *
|
||||
vk_present_mode_string(VkPresentModeKHR code)
|
||||
{
|
||||
|
@ -473,17 +443,6 @@ vk_present_mode_string(VkPresentModeKHR code)
|
|||
}
|
||||
}
|
||||
|
||||
XRT_CHECK_RESULT const char *
|
||||
vk_power_state_string(VkDisplayPowerStateEXT code)
|
||||
{
|
||||
switch (code) {
|
||||
ENUM_TO_STR(VK_DISPLAY_POWER_STATE_OFF_EXT);
|
||||
ENUM_TO_STR(VK_DISPLAY_POWER_STATE_SUSPEND_EXT);
|
||||
ENUM_TO_STR(VK_DISPLAY_POWER_STATE_ON_EXT);
|
||||
default: return "UNKNOWN MODE";
|
||||
}
|
||||
}
|
||||
|
||||
XRT_CHECK_RESULT const char *
|
||||
vk_color_space_string(VkColorSpaceKHR code)
|
||||
{
|
||||
|
@ -512,6 +471,47 @@ vk_color_space_string(VkColorSpaceKHR code)
|
|||
}
|
||||
}
|
||||
|
||||
XRT_CHECK_RESULT const char *
|
||||
vk_power_state_string(VkDisplayPowerStateEXT code)
|
||||
{
|
||||
switch (code) {
|
||||
ENUM_TO_STR(VK_DISPLAY_POWER_STATE_OFF_EXT);
|
||||
ENUM_TO_STR(VK_DISPLAY_POWER_STATE_SUSPEND_EXT);
|
||||
ENUM_TO_STR(VK_DISPLAY_POWER_STATE_ON_EXT);
|
||||
default: return "UNKNOWN MODE";
|
||||
}
|
||||
}
|
||||
|
||||
XRT_CHECK_RESULT const char *
|
||||
vk_format_feature_string(VkFormatFeatureFlagBits code)
|
||||
{
|
||||
switch (code) {
|
||||
ENUM_TO_STR(VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT);
|
||||
ENUM_TO_STR(VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT);
|
||||
ENUM_TO_STR(VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT);
|
||||
ENUM_TO_STR(VK_FORMAT_FEATURE_TRANSFER_SRC_BIT);
|
||||
ENUM_TO_STR(VK_FORMAT_FEATURE_TRANSFER_DST_BIT);
|
||||
ENUM_TO_STR(VK_FORMAT_R5G6B5_UNORM_PACK16);
|
||||
default: return "UNKNOWN FORMAT FEATURE";
|
||||
}
|
||||
}
|
||||
|
||||
XRT_CHECK_RESULT const char *
|
||||
xrt_swapchain_usage_string(enum xrt_swapchain_usage_bits code)
|
||||
{
|
||||
switch (code) {
|
||||
ENUM_TO_STR(XRT_SWAPCHAIN_USAGE_COLOR);
|
||||
ENUM_TO_STR(XRT_SWAPCHAIN_USAGE_DEPTH_STENCIL);
|
||||
ENUM_TO_STR(XRT_SWAPCHAIN_USAGE_UNORDERED_ACCESS);
|
||||
ENUM_TO_STR(XRT_SWAPCHAIN_USAGE_TRANSFER_SRC);
|
||||
ENUM_TO_STR(XRT_SWAPCHAIN_USAGE_TRANSFER_DST);
|
||||
ENUM_TO_STR(XRT_SWAPCHAIN_USAGE_SAMPLED);
|
||||
ENUM_TO_STR(XRT_SWAPCHAIN_USAGE_MUTABLE_FORMAT);
|
||||
ENUM_TO_STR(XRT_SWAPCHAIN_USAGE_INPUT_ATTACHMENT);
|
||||
default: return "UNKNOWN SWAPCHAIN USAGE";
|
||||
}
|
||||
}
|
||||
|
||||
XRT_CHECK_RESULT bool
|
||||
vk_has_error(VkResult res, const char *fun, const char *file, int line)
|
||||
{
|
||||
|
|
|
@ -456,10 +456,10 @@ XRT_CHECK_RESULT const char *
|
|||
vk_present_mode_string(VkPresentModeKHR code);
|
||||
|
||||
XRT_CHECK_RESULT const char *
|
||||
vk_power_state_string(VkDisplayPowerStateEXT code);
|
||||
vk_color_space_string(VkColorSpaceKHR code);
|
||||
|
||||
XRT_CHECK_RESULT const char *
|
||||
vk_color_space_string(VkColorSpaceKHR code);
|
||||
vk_power_state_string(VkDisplayPowerStateEXT code);
|
||||
|
||||
XRT_CHECK_RESULT const char *
|
||||
vk_format_feature_string(VkFormatFeatureFlagBits code);
|
||||
|
|
Loading…
Reference in a new issue