In order to run demo applications, there should be at least one available
supported surface format and present mode.
Change-Id: If99769a67492aeaf91d1fdfedb0da84fadb53705
VkBool32 *supported)
{
/* TODO: */
+
+ *supported = VK_TRUE;
return VK_SUCCESS;
}
VkSurfaceFormatKHR *formats)
{
/* TODO: */
+
+ if (formats == NULL) {
+ *format_count = 1;
+ } else {
+ if (*format_count != 0) {
+ formats[0].format = VK_FORMAT_B8G8R8A8_UINT;
+ formats[0].colorSpace = VK_COLORSPACE_SRGB_NONLINEAR_KHR;
+ }
+ }
+
return VK_SUCCESS;
}
VkPresentModeKHR *modes)
{
/* TODO: */
+
+ if (modes == NULL) {
+ *mode_count = 1;
+ } else {
+ if (*mode_count != 0)
+ modes[0] = VK_PRESENT_MODE_FIFO_KHR;
+ }
+
return VK_SUCCESS;
}