mojoshader_vulkan_vkfuncs.h
changeset 1271 5a67d082c55f
equal deleted inserted replaced
1270:fb28ba997299 1271:5a67d082c55f
       
     1 /**
       
     2  * MojoShader; generate shader programs from bytecode of compiled
       
     3  *  Direct3D shaders.
       
     4  *
       
     5  * Please see the file LICENSE.txt in the source's root directory.
       
     6  *
       
     7  *  This file written by Ryan C. Gordon.
       
     8  */
       
     9 
       
    10 /*
       
    11  * vkInstance, created by global vkCreateInstance function
       
    12  */
       
    13 
       
    14 #ifndef VULKAN_INSTANCE_FUNCTION
       
    15 #define VULKAN_INSTANCE_FUNCTION(ext, ret, func, params)
       
    16 #endif
       
    17 VULKAN_INSTANCE_FUNCTION(void, vkGetPhysicalDeviceMemoryProperties, (VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties *pMemoryProperties))
       
    18 
       
    19 /*
       
    20  * vkDevice, created by a vkInstance
       
    21  */
       
    22 
       
    23 #ifndef VULKAN_DEVICE_FUNCTION
       
    24 #define VULKAN_DEVICE_FUNCTION(ext, ret, func, params)
       
    25 #endif
       
    26 VULKAN_DEVICE_FUNCTION(VkResult, vkAllocateMemory, (VkDevice device, const VkMemoryAllocateInfo *pAllocateInfo, const VkAllocationCallbacks *pAllocator, VkDeviceMemory *pMemory))
       
    27 VULKAN_DEVICE_FUNCTION(VkResult, vkBindBufferMemory, (VkDevice device, VkBuffer buffer, VkDeviceMemory memory, VkDeviceSize memoryOffset))
       
    28 VULKAN_DEVICE_FUNCTION(VkResult, vkCreateBuffer, (VkDevice device, const VkBufferCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkBuffer *pBuffer))
       
    29 VULKAN_DEVICE_FUNCTION(VkResult, vkCreateShaderModule, (VkDevice device, const VkShaderModuleCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkShaderModule *pShaderModule))
       
    30 VULKAN_DEVICE_FUNCTION(void, vkDestroyBuffer, (VkDevice device, VkBuffer buffer, const VkAllocationCallbacks *pAllocator))
       
    31 VULKAN_DEVICE_FUNCTION(void, vkDestroyShaderModule, (VkDevice device, VkShaderModule shaderModule, const VkAllocationCallbacks *pAllocator))
       
    32 VULKAN_DEVICE_FUNCTION(void, vkFreeMemory, (VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks *pAllocator))
       
    33 VULKAN_DEVICE_FUNCTION(void, vkGetBufferMemoryRequirements, (VkDevice device, VkBuffer buffer, VkMemoryRequirements *pMemoryRequirements))
       
    34 VULKAN_DEVICE_FUNCTION(VkResult, vkMapMemory, (VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void **ppData))
       
    35 VULKAN_DEVICE_FUNCTION(void, vkUnmapMemory, (VkDevice device, VkDeviceMemory memory))
       
    36 
       
    37 /*
       
    38  * Redefine these every time you include this header!
       
    39  */
       
    40 #undef VULKAN_INSTANCE_FUNCTION
       
    41 #undef VULKAN_DEVICE_FUNCTION