vkGetImageSparseMemoryRequirements - Query the memory requirements for a sparse image
Description
If pSparseMemoryRequirements is NULL, then the number of sparse
memory requirements available is returned in
pSparseMemoryRequirementCount. Otherwise,
pSparseMemoryRequirementCount must point to a variable set by the
application to the number of elements in the pSparseMemoryRequirements
array, and on return the variable is overwritten with the number of
structures actually written to pSparseMemoryRequirements. If
pSparseMemoryRequirementCount is less than the number of sparse memory
requirements available, at most pSparseMemoryRequirementCount
structures will be written.
If the image was not created with
IMAGE_CREATE_SPARSE_RESIDENCY_BIT
then pSparseMemoryRequirementCount will be zero and
pSparseMemoryRequirements will not be written to.
It is legal for an implementation to report a larger value in
MemoryRequirements::size than would
be obtained by adding together memory sizes for all
SparseImageMemoryRequirements returned by
getImageSparseMemoryRequirements. This may occur when the
implementation requires unused padding in the address range describing
the resource.
Valid Usage (Implicit)
devicemust be a valid Device handle
imagemust be a valid Image handlepSparseMemoryRequirementCountmust be a valid pointer to auint32_tvalueIf the value referenced by
pSparseMemoryRequirementCountis not0, andpSparseMemoryRequirementsis notNULL,pSparseMemoryRequirementsmust be a valid pointer to an array ofpSparseMemoryRequirementCountSparseImageMemoryRequirements structuresimagemust have been created, allocated, or retrieved fromdevice
See Also
VK_VERSION_1_0, Device, Image, SparseImageMemoryRequirements