cuda.bindings._v2.driver.mipmapped_array_get_sparse_properties#
- cuda.bindings._v2.driver.mipmapped_array_get_sparse_properties(intptr_t mipmap)#
Returns the layout properties of a sparse CUDA mipmapped array.
Returns the sparse array layout properties in
sparse_propertiesIf the CUDA mipmapped array is not allocated with flagCUDA_ARRAY3D_SPARSECUDA_ERROR_INVALID_VALUEwill be returned. For non-layered CUDA mipmapped arrays,CUDA_ARRAY_SPARSE_PROPERTIES.miptailSizereturns the size of the mip tail region. The mip tail region includes all mip levels whose width, height or depth is less than that of the tile. For layered CUDA mipmapped arrays, ifCUDA_ARRAY_SPARSE_PROPERTIES.flagscontainsCU_ARRAY_SPARSE_PROPERTIES_SINGLE_MIPTAIL, thenCUDA_ARRAY_SPARSE_PROPERTIES.miptailSizespecifies the size of the mip tail of all layers combined. Otherwise,CUDA_ARRAY_SPARSE_PROPERTIES.miptailSizespecifies mip tail size per layer. The returned value ofCUDA_ARRAY_SPARSE_PROPERTIES.miptailFirstLevelis valid only ifCUDA_ARRAY_SPARSE_PROPERTIES.miptailSizeis non-zero.- Parameters:
mipmap (intptr_t) – CUDA mipmapped array to get the sparse properties of.
- Returns:
- Pointer to
CUDA_ARRAY_SPARSE_PROPERTIES.
- Return type:
See also
cuMipmappedArrayGetSparseProperties