// Copyright (c) 2014-2016 Khronos Group. This work is licensed under a // Creative Commons Attribution 4.0 International License; see // http://creativecommons.org/licenses/by/4.0/ vkGetImageSparseMemoryRequirements(3) ===================================== Name ---- vkGetImageSparseMemoryRequirements - Query the memory requirements for a sparse image. C Specification --------------- // refBegin vkGetImageSparseMemoryRequirements Query the memory requirements for a sparse image. To query sparse memory requirements for an image, call: include::../api/protos/vkGetImageSparseMemoryRequirements.txt[] Parameters ---------- * pname:device is the logical device that owns the image. * pname:image is the sname:VkImage object to get the memory requirements for. * pname:pSparseMemoryRequirementCount is a pointer to an integer related to the number of sparse memory requirements available or queried, as described below. * pname:pSparseMemoryRequirements is either `NULL` or a pointer to an array of sname:VkSparseImageMemoryRequirements structures. Description ----------- If pname:pSparseMemoryRequirements is `NULL`, then the number of sparse memory requirements available is returned in pname:pSparseMemoryRequirementCount. Otherwise, pname:pSparseMemoryRequirementCount must: point to a variable set by the user to the number of elements in the pname:pSparseMemoryRequirements array, and on return the variable is overwritten with the number of structures actually written to pname:pSparseMemoryRequirements. If pname:pSparseMemoryRequirementCount is less than the number of sparse memory requirements available, at most pname:pSparseMemoryRequirementCount structures will be written. If the image was not created with ename:VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT then pname:pSparseMemoryRequirementCount will be set to zero and pname:pSparseMemoryRequirements will not be written to. [NOTE] .Note ==== It is legal for an implementation to report a larger value in sname:VkMemoryRequirements::pname:size than would be obtained by adding together memory sizes for all sname:VkSparseImageMemoryRequirements returned by fname:vkGetImageSparseMemoryRequirements. This may: occur when the hardware requires unused padding in the address range describing the resource. ==== include::../validity/protos/vkGetImageSparseMemoryRequirements.txt[] See Also -------- slink:VkDevice, slink:VkImage, slink:VkSparseImageMemoryRequirements Document Notes -------------- For more information, see the Vulkan Specification at URL https://www.khronos.org/registry/vulkan/specs/1.0/xhtml/vkspec.html#vkGetImageSparseMemoryRequirements This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification,not directly. include::footer.txt[]