cubecl_hip_sys

Function hipGraphicsResourceGetMappedPointer

Source
pub unsafe extern "C" fn hipGraphicsResourceGetMappedPointer(
    devPtr: *mut *mut c_void,
    size: *mut usize,
    resource: hipGraphicsResource_t,
) -> hipError_t
Expand description

@brief Gets device accessible address of a graphics resource.

@param [out] devPtr - Pointer of device through which graphic resource may be accessed. @param [out] size - Size of the buffer accessible from devPtr. @param [in] resource - Mapped resource to access.

@returns #hipSuccess, #hipErrorInvalidValue