1
|
|
-diff --git a/include/vulkan/vulkan_intel.h b/include/vulkan/vulkan_intel.h
|
2
|
|
-new file mode 100644
|
3
|
|
-index 0000000..8ede61b
|
4
|
|
---- /dev/null
|
5
|
|
-+++ b/include/vulkan/vulkan_intel.h
|
6
|
|
-@@ -0,0 +1,62 @@
|
7
|
|
-+/*
|
8
|
|
-+ * Copyright © 2015 Intel Corporation
|
9
|
|
-+ *
|
10
|
|
-+ * Permission is hereby granted, free of charge, to any person obtaining a
|
11
|
|
-+ * copy of this software and associated documentation files (the "Software"),
|
12
|
|
-+ * to deal in the Software without restriction, including without limitation
|
13
|
|
-+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
14
|
|
-+ * and/or sell copies of the Software, and to permit persons to whom the
|
15
|
|
-+ * Software is furnished to do so, subject to the following conditions:
|
16
|
|
-+ *
|
17
|
|
-+ * The above copyright notice and this permission notice (including the next
|
18
|
|
-+ * paragraph) shall be included in all copies or substantial portions of the
|
19
|
|
-+ * Software.
|
20
|
|
-+ *
|
21
|
|
-+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
22
|
|
-+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
23
|
|
-+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
24
|
|
-+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
25
|
|
-+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
26
|
|
-+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
27
|
|
-+ * IN THE SOFTWARE.
|
28
|
|
-+ */
|
29
|
|
-+
|
30
|
|
-+#ifndef __VULKAN_INTEL_H__
|
31
|
|
-+#define __VULKAN_INTEL_H__
|
32
|
|
-+
|
33
|
|
-+#include "vulkan.h"
|
34
|
|
-+
|
35
|
|
-+#ifdef __cplusplus
|
36
|
|
-+extern "C"
|
37
|
|
-+{
|
38
|
|
-+#endif // __cplusplus
|
39
|
|
-+
|
40
|
|
-+#define VK_STRUCTURE_TYPE_DMA_BUF_IMAGE_CREATE_INFO_INTEL 1024
|
41
|
|
-+typedef struct VkDmaBufImageCreateInfo_
|
42
|
|
-+{
|
43
|
|
-+ VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DMA_BUF_IMAGE_CREATE_INFO_INTEL
|
44
|
|
-+ const void* pNext; // Pointer to next structure.
|
45
|
|
-+ int fd;
|
46
|
|
-+ VkFormat format;
|
47
|
|
-+ VkExtent3D extent; // Depth must be 1
|
48
|
|
-+ uint32_t strideInBytes;
|
49
|
|
-+} VkDmaBufImageCreateInfo;
|
50
|
|
-+
|
51
|
|
-+typedef VkResult (VKAPI_PTR *PFN_vkCreateDmaBufImageINTEL)(VkDevice device, const VkDmaBufImageCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMem, VkImage* pImage);
|
52
|
|
-+
|
53
|
|
-+#ifndef VK_NO_PROTOTYPES
|
54
|
|
-+
|
55
|
|
-+VKAPI_ATTR VkResult VKAPI_CALL vkCreateDmaBufImageINTEL(
|
56
|
|
-+ VkDevice _device,
|
57
|
|
-+ const VkDmaBufImageCreateInfo* pCreateInfo,
|
58
|
|
-+ const VkAllocationCallbacks* pAllocator,
|
59
|
|
-+ VkDeviceMemory* pMem,
|
60
|
|
-+ VkImage* pImage);
|
61
|
|
-+
|
62
|
|
-+#endif
|
63
|
|
-+
|
64
|
|
-+#ifdef __cplusplus
|
65
|
|
-+} // extern "C"
|
66
|
|
-+#endif // __cplusplus
|
67
|
|
-+
|
68
|
|
-+#endif // __VULKAN_INTEL_H__
|