Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: gpu/vulkan/vulkan_platform.h

Issue 1776453003: Added initial implementation of Vulkan Render Passes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn_vulkan
Patch Set: Adding logging/macros headers Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/vulkan/vulkan_implementation.cc ('k') | gpu/vulkan/vulkan_render_pass.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file is used so we only include platform specific headers when
6 // necessary. Otherwise some headers such as for X11 define extra macros which
7 // can conflict with other headers.
8
9 #ifndef GPU_VULKAN_VULKAN_H_
10 #define GPU_VULKAN_VULKAN_H_
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 #if defined(USE_X11)
17 #define VK_USE_PLATFORM_XLIB_KHR
18 #endif
19
20 // This section below is taken from <vulkan/vulkan.h>
21 #ifdef VK_USE_PLATFORM_XLIB_KHR
22 #define VK_KHR_xlib_surface 1
23 #include <X11/Xlib.h>
24
25 #define VK_KHR_XLIB_SURFACE_SPEC_VERSION 6
26 #define VK_KHR_XLIB_SURFACE_EXTENSION_NAME "VK_KHR_xlib_surface"
27
28 typedef VkFlags VkXlibSurfaceCreateFlagsKHR;
29
30 typedef struct VkXlibSurfaceCreateInfoKHR {
31 VkStructureType sType;
32 const void* pNext;
33 VkXlibSurfaceCreateFlagsKHR flags;
34 Display* dpy;
35 Window window;
36 } VkXlibSurfaceCreateInfoKHR;
37
38 typedef VkResult(VKAPI_PTR* PFN_vkCreateXlibSurfaceKHR)(
39 VkInstance instance,
40 const VkXlibSurfaceCreateInfoKHR* pCreateInfo,
41 const VkAllocationCallbacks* pAllocator,
42 VkSurfaceKHR* pSurface);
43 typedef VkBool32(VKAPI_PTR* PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR)(
44 VkPhysicalDevice physicalDevice,
45 uint32_t queueFamilyIndex,
46 Display* dpy,
47 VisualID visualID);
48
49 #ifndef VK_NO_PROTOTYPES
50 VKAPI_ATTR VkResult VKAPI_CALL
51 vkCreateXlibSurfaceKHR(VkInstance instance,
52 const VkXlibSurfaceCreateInfoKHR* pCreateInfo,
53 const VkAllocationCallbacks* pAllocator,
54 VkSurfaceKHR* pSurface);
55
56 VKAPI_ATTR VkBool32 VKAPI_CALL
57 vkGetPhysicalDeviceXlibPresentationSupportKHR(VkPhysicalDevice physicalDevice,
58 uint32_t queueFamilyIndex,
59 Display* dpy,
60 VisualID visualID);
61 #endif
62 #endif /* VK_USE_PLATFORM_XLIB_KHR */
63
64 #ifdef __cplusplus
65 } // extern "C"
66 #endif
67
68 #endif // GPU_VULKAN_VULKAN_H_
OLDNEW
« no previous file with comments | « gpu/vulkan/vulkan_implementation.cc ('k') | gpu/vulkan/vulkan_render_pass.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698