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_win.h" | 9 #include "../VulkanWindowContext.h" |
| 10 #include "Window_win.h" |
10 | 11 |
11 #include "vk/GrVkInterface.h" | 12 #include "vk/GrVkInterface.h" |
12 #include "vk/GrVkUtil.h" | 13 #include "vk/GrVkUtil.h" |
13 | 14 |
14 namespace sk_app { | 15 namespace sk_app { |
15 | 16 |
16 // Platform dependant call | 17 // Platform dependant call |
17 VkSurfaceKHR VulkanWindowContext::createVkSurface(VkInstance instance, void* pla
tformData) { | 18 VkSurfaceKHR VulkanWindowContext::createVkSurface(VkInstance instance, void* pla
tformData) { |
18 static PFN_vkCreateWin32SurfaceKHR createWin32SurfaceKHR = nullptr; | 19 static PFN_vkCreateWin32SurfaceKHR createWin32SurfaceKHR = nullptr; |
19 if (!createWin32SurfaceKHR) { | 20 if (!createWin32SurfaceKHR) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 getPhysicalDeviceWin32PresentationSupportKHR = | 54 getPhysicalDeviceWin32PresentationSupportKHR = |
54 (PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR) vkGetInstancePr
ocAddr(instance, | 55 (PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR) vkGetInstancePr
ocAddr(instance, |
55 "vkGetPhysicalDeviceWin32Presen
tationSupportKHR"); | 56 "vkGetPhysicalDeviceWin32Presen
tationSupportKHR"); |
56 } | 57 } |
57 | 58 |
58 VkBool32 check = getPhysicalDeviceWin32PresentationSupportKHR(physDev, queue
FamilyIndex); | 59 VkBool32 check = getPhysicalDeviceWin32PresentationSupportKHR(physDev, queue
FamilyIndex); |
59 return (VK_FALSE != check); | 60 return (VK_FALSE != check); |
60 } | 61 } |
61 | 62 |
62 } // namespace sk_app | 63 } // namespace sk_app |
OLD | NEW |