From f576a3edbd003797df3ca6995160e093f14c9f9d Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sun, 21 Jun 2015 22:55:02 +1200 Subject: vulkan.h: Remove vkGetFormatInfo, add features/limits (#12827, v125) NOTES: 1/ Some layers impact from vkGetFormatInfo -> vkGetPhysicalDeviceFormatInfo; some checks are currently disabled in ParamChecker pending discussion on the best way to do this. Similar checks in Image layer implemented via additional layer_data member to link back from VkDevice -> VkPhysicalDevice. 2/ VkPhysicalDeviceFeatures, VkPhysicalDeviceLimits members all zero for now; also some further churn to be done to the contents of these structures. Signed-off-by: Chris Forbes --- vulkan.py | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'vulkan.py') diff --git a/vulkan.py b/vulkan.py index 8e6fd013..7fa074a1 100755 --- a/vulkan.py +++ b/vulkan.py @@ -235,6 +235,19 @@ core = Extension( Param("size_t*", "pDataSize"), Param("void*", "pData")]), + Proto("VkResult", "GetPhysicalDeviceFeatures", + [Param("VkPhysicalDevice", "physicalDevice"), + Param("VkPhysicalDeviceFeatures*", "pFeatures")]), + + Proto("VkResult", "GetPhysicalDeviceFormatInfo", + [Param("VkPhysicalDevice", "physicalDevice"), + Param("VkFormat", "format"), + Param("VkFormatProperties*", "pFormatInfo")]), + + Proto("VkResult", "GetPhysicalDeviceLimits", + [Param("VkPhysicalDevice", "physicalDevice"), + Param("VkPhysicalDeviceLimits*", "pLimits")]), + Proto("void*", "GetInstanceProcAddr", [Param("VkInstance", "instance"), Param("const char*", "pName")]), @@ -413,13 +426,6 @@ core = Extension( Param("void*", "pData"), Param("VkQueryResultFlags", "flags")]), - Proto("VkResult", "GetFormatInfo", - [Param("VkDevice", "device"), - Param("VkFormat", "format"), - Param("VkFormatInfoType", "infoType"), - Param("size_t*", "pDataSize"), - Param("void*", "pData")]), - Proto("VkResult", "CreateBuffer", [Param("VkDevice", "device"), Param("const VkBufferCreateInfo*", "pCreateInfo"), -- cgit v1.2.3