cubecl_hip_sys

Function hipMallocMipmappedArray

Source
pub unsafe extern "C" fn hipMallocMipmappedArray(
    mipmappedArray: *mut hipMipmappedArray_t,
    desc: *const hipChannelFormatDesc,
    extent: hipExtent,
    numLevels: c_uint,
    flags: c_uint,
) -> hipError_t
Expand description

@brief Allocate a mipmapped array on the device.

@param[out] mipmappedArray - Pointer to allocated mipmapped array in device memory @param[in] desc - Requested channel format @param[in] extent - Requested allocation size (width field in elements) @param[in] numLevels - Number of mipmap levels to allocate @param[in] flags - Flags for extensions

@return #hipSuccess, #hipErrorInvalidValue, #hipErrorMemoryAllocation

@note This API is implemented on Windows, under development on Linux.