| 1147 | //----------------------QNX SCREEN--------------------------- |
| 1148 | #ifdef VK_USE_PLATFORM_SCREEN_QNX |
| 1149 | static void AppCreateScreenWindow(AppInstance &inst) { |
| 1150 | int usage = SCREEN_USAGE_VULKAN; |
| 1151 | int rc; |
| 1152 | |
| 1153 | rc = screen_create_context(&inst.context, 0); |
| 1154 | if (rc) { |
| 1155 | THROW_ERR("Could not create a QNX Screen context."); |
| 1156 | } |
| 1157 | rc = screen_create_window(&inst.window, inst.context); |
| 1158 | if (rc) { |
| 1159 | THROW_ERR("Could not create a QNX Screen window."); |
| 1160 | } |
| 1161 | rc = screen_set_window_property_iv(inst.window, SCREEN_PROPERTY_USAGE, &usage); |
| 1162 | if (rc) { |
| 1163 | THROW_ERR("Could not set SCREEN_USAGE_VULKAN flag for QNX Screen window!"); |
| 1164 | } |
| 1165 | } |
| 1166 | |
| 1167 | static VkSurfaceKHR AppCreateScreenSurface(AppInstance &inst) { |
| 1168 | VkScreenSurfaceCreateInfoQNX createInfo; |
nothing calls this directly
no outgoing calls
no test coverage detected