• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<registry>
3    <types>
4        <type category="struct" name="VkNativeBufferANDROID">
5            <member values="VK_STRUCTURE_TYPE_NATIVE_BUFFER_ANDROID"><type>VkStructureType</type> <name>sType</name></member>
6            <member>const <type>void</type>* <name>pNext</name></member>
7            <member><type>buffer_handle_t</type> <name>handle</name></member>
8            <member><type>int</type> <name>stride</name></member>
9            <member><type>int</type> <name>format</name></member>
10            <member><type>int</type> <name>usage</name></member>
11        </type>
12    </types>
13    <commands>
14        <command>
15            <proto><type>VkResult</type> <name>vkGetSwapchainGrallocUsageANDROID</name></proto>
16            <param><type>VkDevice</type> <name>device</name></param>
17            <param><type>VkFormat</type> <name>format</name></param>
18            <param><type>VkImageUsageFlags</type> <name>imageUsage</name></param>
19            <param><type>int</type>* <name>grallocUsage</name></param>
20        </command>
21        <command>
22            <proto><type>VkResult</type> <name>vkAcquireImageANDROID</name></proto>
23            <param><type>VkDevice</type> <name>device</name></param>
24            <param><type>VkImage</type> <name>image</name></param>
25            <param><type>int</type> <name>nativeFenceFd</name></param>
26            <param><type>VkSemaphore</type> <name>semaphore</name></param>
27            <param><type>VkFence</type> <name>fence</name></param>
28        </command>
29        <command>
30            <proto><type>VkResult</type> <name>vkQueueSignalReleaseImageANDROID</name></proto>
31            <param><type>VkQueue</type> <name>queue</name></param>
32            <param><type>uint32_t</type> <name>waitSemaphoreCount</name></param>
33            <param>const <type>VkSemaphore</type>* <name>pWaitSemaphores</name></param>
34            <param><type>VkImage</type> <name>image</name></param>
35            <param><type>int</type>* <name>pNativeFenceFd</name></param>
36        </command>
37    </commands>
38    <extensions>
39        <extension name="VK_ANDROID_native_buffer" number="11" type="device" protect="ANDROID" supported="vulkan">
40            <require>
41                <enum value="5"                                         name="VK_ANDROID_NATIVE_BUFFER_SPEC_VERSION"/>
42                <enum value="11"                                        name="VK_ANDROID_NATIVE_BUFFER_NUMBER"/>
43                <enum value="&quot;VK_ANDROID_native_buffer&quot;"      name="VK_ANDROID_NATIVE_BUFFER_NAME"/>
44                <enum offset="0" extends="VkStructureType"              name="VK_STRUCTURE_TYPE_NATIVE_BUFFER_ANDROID"/>
45                <type name="VkNativeBufferANDROID"/>
46                <command name="vkGetSwapchainGrallocUsageANDROID"/>
47                <command name="vkAcquireImageANDROID"/>
48                <command name="vkQueueSignalReleaseImageANDROID"/>
49            </require>
50        </extension>
51    </extensions>
52</registry>
53