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