| 1064 | //-------------------------DIRECTFB-------------------------- |
| 1065 | #ifdef VK_USE_PLATFORM_DIRECTFB_EXT |
| 1066 | static void AppCreateDirectFBWindow(AppInstance &inst) { |
| 1067 | DFBResult ret; |
| 1068 | |
| 1069 | ret = DirectFBInit(NULL, NULL); |
| 1070 | if (ret) { |
| 1071 | THROW_ERR("DirectFBInit failed to initialize DirectFB."); |
| 1072 | } |
| 1073 | |
| 1074 | ret = DirectFBCreate(&inst.dfb); |
| 1075 | if (ret) { |
| 1076 | THROW_ERR("DirectFBCreate failed to create main interface of DirectFB."); |
| 1077 | } |
| 1078 | |
| 1079 | DFBSurfaceDescription desc; |
| 1080 | desc.flags = (DFBSurfaceDescriptionFlags)(DSDESC_CAPS | DSDESC_WIDTH | DSDESC_HEIGHT); |
| 1081 | desc.caps = DSCAPS_PRIMARY; |
| 1082 | desc.width = inst.width; |
| 1083 | desc.height = inst.height; |
| 1084 | ret = inst.dfb->CreateSurface(inst.dfb, &desc, &inst.directfb_surface); |
| 1085 | if (ret) { |
| 1086 | THROW_ERR("CreateSurface failed to create DirectFB surface interface."); |
| 1087 | } |
| 1088 | } |
| 1089 | |
| 1090 | static VkSurfaceKHR AppCreateDirectFBSurface(AppInstance &inst) { |
| 1091 | VkDirectFBSurfaceCreateInfoEXT createInfo; |
nothing calls this directly
no outgoing calls
no test coverage detected