diff options
| author | Tony Barbour <tony@LunarG.com> | 2015-04-16 19:23:13 -0600 |
|---|---|---|
| committer | Tony Barbour <tony@LunarG.com> | 2015-04-16 19:35:00 -0600 |
| commit | 834a93da196bd710efa2d3f481cded30ae22ddd5 (patch) | |
| tree | 405e9215a9890ad841b3ce82db2af65f8b8cd4de | |
| parent | 3213c75fc5178de45c117a10f187a9279e546859 (diff) | |
| download | usermoji-834a93da196bd710efa2d3f481cded30ae22ddd5.tar.xz | |
Bug 13632 Header 84 Add VkFlushMappedMemory
| -rw-r--r-- | include/vkLayer.h | 1 | ||||
| -rw-r--r-- | include/vulkan.h | 5 | ||||
| -rw-r--r-- | layers/param_checker.cpp | 7 | ||||
| -rwxr-xr-x | vulkan.py | 5 |
4 files changed, 18 insertions, 0 deletions
diff --git a/include/vkLayer.h b/include/vkLayer.h index 793ace9a..39602e2d 100644 --- a/include/vkLayer.h +++ b/include/vkLayer.h @@ -48,6 +48,7 @@ typedef struct VkLayerDispatchTable_ PFN_vkSetMemoryPriority SetMemoryPriority; PFN_vkMapMemory MapMemory; PFN_vkUnmapMemory UnmapMemory; + PFN_vkFlushMappedMemory FlushMappedMemory; PFN_vkPinSystemMemory PinSystemMemory; PFN_vkGetMultiDeviceCompatibility GetMultiDeviceCompatibility; PFN_vkOpenSharedMemory OpenSharedMemory; diff --git a/include/vulkan.h b/include/vulkan.h index ab347c41..f900825c 100644 --- a/include/vulkan.h +++ b/include/vulkan.h @@ -2295,6 +2295,11 @@ VkResult VKAPI vkMapMemory( VkResult VKAPI vkUnmapMemory( VkDeviceMemory mem); +VkResult VKAPI vkFlushMappedMemory( + VkDeviceMemory mem, + VkDeviceSize offset, + VkDeviceSize size); + VkResult VKAPI vkPinSystemMemory( VkDevice device, const void* pSysMem, diff --git a/layers/param_checker.cpp b/layers/param_checker.cpp index cfa0f30c..03533eae 100644 --- a/layers/param_checker.cpp +++ b/layers/param_checker.cpp @@ -404,6 +404,13 @@ VK_LAYER_EXPORT VkResult VKAPI vkUnmapMemory(VkDeviceMemory mem) return result; } +VK_LAYER_EXPORT VkResult VKAPI vkFlushMappedMemory(VkDeviceMemory mem, VkDeviceSize offset, VkDeviceSize size) +{ + + VkResult result = nextTable.FlushMappedMemory(mem, offset, size); + return result; +} + VK_LAYER_EXPORT VkResult VKAPI vkPinSystemMemory(VkDevice device, const void* pSysMem, size_t memSize, VkDeviceMemory* pMem) { @@ -319,6 +319,11 @@ core = Extension( Proto("VkResult", "UnmapMemory", [Param("VkDeviceMemory", "mem")]), + Proto("VkResult", "FlushMappedMemory", + [Param("VkDeviceMemory", "mem"), + Param("VkDeviceSize", "offset"), + Param("VkDeviceSize", "size")]), + Proto("VkResult", "PinSystemMemory", [Param("VkDevice", "device"), Param("const void*", "pSysMem"), |
