Ben Clayton | 654540e | 2019-02-01 13:08:23 +0000 | [diff] [blame] | 1 | // Copyright 2019 The SwiftShader Authors. All Rights Reserved. |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | // VkInstanceFuncs.h lists the vulkan driver per-instance functions. |
| 16 | // |
| 17 | // TODO: Generate this list. |
| 18 | |
| 19 | // VK_INSTANCE(<function name>, <return type>, <arguments>...) |
Ben Clayton | bb50106 | 2019-04-24 20:23:29 +0100 | [diff] [blame] | 20 | VK_INSTANCE(vkAllocateCommandBuffers, VkResult, VkDevice, const VkCommandBufferAllocateInfo*, VkCommandBuffer*); |
| 21 | VK_INSTANCE(vkAllocateDescriptorSets, VkResult, VkDevice, const VkDescriptorSetAllocateInfo*, VkDescriptorSet*); |
Ben Clayton | 654540e | 2019-02-01 13:08:23 +0000 | [diff] [blame] | 22 | VK_INSTANCE(vkAllocateMemory, VkResult, VkDevice, const VkMemoryAllocateInfo*, const VkAllocationCallbacks*, |
Ben Clayton | bb50106 | 2019-04-24 20:23:29 +0100 | [diff] [blame] | 23 | VkDeviceMemory*); |
| 24 | VK_INSTANCE(vkBeginCommandBuffer, VkResult, VkCommandBuffer, const VkCommandBufferBeginInfo*); |
| 25 | VK_INSTANCE(vkBindBufferMemory, VkResult, VkDevice, VkBuffer, VkDeviceMemory, VkDeviceSize); |
Ben Clayton | 654540e | 2019-02-01 13:08:23 +0000 | [diff] [blame] | 26 | VK_INSTANCE(vkCmdBindDescriptorSets, void, VkCommandBuffer, VkPipelineBindPoint, VkPipelineLayout, uint32_t, uint32_t, |
Ben Clayton | bb50106 | 2019-04-24 20:23:29 +0100 | [diff] [blame] | 27 | const VkDescriptorSet*, uint32_t, const uint32_t*); |
| 28 | VK_INSTANCE(vkCmdBindPipeline, void, VkCommandBuffer, VkPipelineBindPoint, VkPipeline); |
| 29 | VK_INSTANCE(vkCmdDispatch, void, VkCommandBuffer, uint32_t, uint32_t, uint32_t); |
| 30 | VK_INSTANCE(vkCreateBuffer, VkResult, VkDevice, const VkBufferCreateInfo*, const VkAllocationCallbacks*, VkBuffer*); |
Ben Clayton | 654540e | 2019-02-01 13:08:23 +0000 | [diff] [blame] | 31 | VK_INSTANCE(vkCreateCommandPool, VkResult, VkDevice, const VkCommandPoolCreateInfo*, const VkAllocationCallbacks*, |
Ben Clayton | bb50106 | 2019-04-24 20:23:29 +0100 | [diff] [blame] | 32 | VkCommandPool*); |
Ben Clayton | 654540e | 2019-02-01 13:08:23 +0000 | [diff] [blame] | 33 | VK_INSTANCE(vkCreateComputePipelines, VkResult, VkDevice, VkPipelineCache, uint32_t, const VkComputePipelineCreateInfo*, |
Ben Clayton | bb50106 | 2019-04-24 20:23:29 +0100 | [diff] [blame] | 34 | const VkAllocationCallbacks*, VkPipeline*); |
Ben Clayton | 654540e | 2019-02-01 13:08:23 +0000 | [diff] [blame] | 35 | VK_INSTANCE(vkCreateDescriptorPool, VkResult, VkDevice, const VkDescriptorPoolCreateInfo*, const VkAllocationCallbacks*, |
Ben Clayton | bb50106 | 2019-04-24 20:23:29 +0100 | [diff] [blame] | 36 | VkDescriptorPool*); |
Ben Clayton | 654540e | 2019-02-01 13:08:23 +0000 | [diff] [blame] | 37 | VK_INSTANCE(vkCreateDescriptorSetLayout, VkResult, VkDevice, const VkDescriptorSetLayoutCreateInfo*, |
Ben Clayton | bb50106 | 2019-04-24 20:23:29 +0100 | [diff] [blame] | 38 | const VkAllocationCallbacks*, VkDescriptorSetLayout*); |
Ben Clayton | 654540e | 2019-02-01 13:08:23 +0000 | [diff] [blame] | 39 | VK_INSTANCE(vkCreateDevice, VkResult, VkPhysicalDevice, const VkDeviceCreateInfo*, const VkAllocationCallbacks*, |
Ben Clayton | bb50106 | 2019-04-24 20:23:29 +0100 | [diff] [blame] | 40 | VkDevice*); |
Ben Clayton | 654540e | 2019-02-01 13:08:23 +0000 | [diff] [blame] | 41 | VK_INSTANCE(vkCreatePipelineLayout, VkResult, VkDevice, const VkPipelineLayoutCreateInfo*, const VkAllocationCallbacks*, |
Ben Clayton | bb50106 | 2019-04-24 20:23:29 +0100 | [diff] [blame] | 42 | VkPipelineLayout*); |
Ben Clayton | 654540e | 2019-02-01 13:08:23 +0000 | [diff] [blame] | 43 | VK_INSTANCE(vkCreateShaderModule, VkResult, VkDevice, const VkShaderModuleCreateInfo*, const VkAllocationCallbacks*, |
Ben Clayton | bb50106 | 2019-04-24 20:23:29 +0100 | [diff] [blame] | 44 | VkShaderModule*); |
| 45 | VK_INSTANCE(vkDestroyDevice, VkResult, VkDevice, const VkAllocationCallbacks*); |
| 46 | VK_INSTANCE(vkEndCommandBuffer, VkResult, VkCommandBuffer); |
| 47 | VK_INSTANCE(vkEnumeratePhysicalDevices, VkResult, VkInstance, uint32_t*, VkPhysicalDevice*); |
| 48 | VK_INSTANCE(vkGetDeviceQueue, void, VkDevice, uint32_t, uint32_t, VkQueue*); |
| 49 | VK_INSTANCE(vkGetPhysicalDeviceMemoryProperties, void, VkPhysicalDevice, VkPhysicalDeviceMemoryProperties*); |
| 50 | VK_INSTANCE(vkGetPhysicalDeviceProperties, void, VkPhysicalDevice, VkPhysicalDeviceProperties*); |
| 51 | VK_INSTANCE(vkGetPhysicalDeviceQueueFamilyProperties, void, VkPhysicalDevice, uint32_t*, VkQueueFamilyProperties*); |
| 52 | VK_INSTANCE(vkMapMemory, VkResult, VkDevice, VkDeviceMemory, VkDeviceSize, VkDeviceSize, VkMemoryMapFlags, void**); |
| 53 | VK_INSTANCE(vkQueueSubmit, VkResult, VkQueue, uint32_t, const VkSubmitInfo*, VkFence); |
| 54 | VK_INSTANCE(vkQueueWaitIdle, VkResult, VkQueue); |
| 55 | VK_INSTANCE(vkUnmapMemory, void, VkDevice, VkDeviceMemory); |
Ben Clayton | 654540e | 2019-02-01 13:08:23 +0000 | [diff] [blame] | 56 | VK_INSTANCE(vkUpdateDescriptorSets, void, VkDevice, uint32_t, const VkWriteDescriptorSet*, uint32_t, |
Ben Clayton | bb50106 | 2019-04-24 20:23:29 +0100 | [diff] [blame] | 57 | const VkCopyDescriptorSet*); |
| 58 | VK_INSTANCE(vkDeviceWaitIdle, VkResult, VkDevice); |