Function hip_sys::hiprt::hipMallocArray
source · pub unsafe extern "C" fn hipMallocArray(
array: *mut *mut hipArray,
desc: *const hipChannelFormatDesc,
width: usize,
height: usize,
flags: u32
) -> hipError_tExpand description
@brief Allocate an array on the device.
@param[out] array Pointer to allocated array in device memory @param[in] desc Requested channel format @param[in] width Requested array allocation width @param[in] height Requested array allocation height @param[in] flags Requested properties of allocated array @return #hipSuccess, #hipErrorOutOfMemory
@see hipMalloc, hipMallocPitch, hipFree, hipFreeArray, hipHostMalloc, hipHostFree