cuda.bindings._v2.driver.graphics_sub_resource_get_mapped_array#
- cuda.bindings._v2.driver.graphics_sub_resource_get_mapped_array(
- intptr_t resource,
- unsigned int array_index,
- unsigned int mip_level,
Get an array through which to access a subresource of a mapped graphics resource.
Returns in
*p_arrayan array through which the subresource of the mapped graphics resourceresourcewhich corresponds to array indexarray_indexand mipmap levelmip_levelmay be accessed. The value set in*p_arraymay change every time thatresourceis mapped. Ifresourceis not a texture then it cannot be accessed via an array andCUDA_ERROR_NOT_MAPPED_AS_ARRAYis returned. Ifarray_indexis not a valid array index forresourcethenCUDA_ERROR_INVALID_VALUEis returned. Ifmip_levelis not a valid mipmap level forresourcethenCUDA_ERROR_INVALID_VALUEis returned. Ifresourceis not mapped thenCUDA_ERROR_NOT_MAPPEDis returned.- Parameters:
resource (intptr_t) – Mapped resource to access.
array_index (unsigned int) – Array index for array textures or cubemap face index as defined by
CUarray_cubemap_facefor cubemap textures for the subresource to access.mip_level (unsigned int) – Mipmap level for the subresource to access.
- Returns:
- Returned array through which a subresource of
resourcemay be accessed.
- Return type:
intptr_t
See also
cuGraphicsSubResourceGetMappedArray