OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2016 Google Inc. | 3 * Copyright 2016 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "VulkanWindowContext_android.h" | 9 #include "VulkanWindowContext_android.h" |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 surfaceCreateInfo.pNext = nullptr; | 33 surfaceCreateInfo.pNext = nullptr; |
34 surfaceCreateInfo.flags = 0; | 34 surfaceCreateInfo.flags = 0; |
35 surfaceCreateInfo.window = androidPlatformData->fNativeWindow; | 35 surfaceCreateInfo.window = androidPlatformData->fNativeWindow; |
36 | 36 |
37 VkResult res = createAndroidSurfaceKHR(instance, &surfaceCreateInfo, | 37 VkResult res = createAndroidSurfaceKHR(instance, &surfaceCreateInfo, |
38 nullptr, &surface); | 38 nullptr, &surface); |
39 return (VK_SUCCESS == res) ? surface : VK_NULL_HANDLE; | 39 return (VK_SUCCESS == res) ? surface : VK_NULL_HANDLE; |
40 } | 40 } |
41 | 41 |
42 bool VulkanWindowContext::canPresent(VkInstance instance, VkPhysicalDevice physD
ev, | 42 bool VulkanWindowContext::canPresent(VkInstance instance, VkPhysicalDevice physD
ev, |
43 uint32_t queueFamilyIndex) { | 43 uint32_t queueFamilyIndex, void*) { |
44 return true; | 44 return true; |
45 } | 45 } |
46 | 46 |
47 } // namespace sk_app | 47 } // namespace sk_app |
OLD | NEW |