pub fn malloc_pitch(
width_bytes: usize,
height: usize,
) -> CudaRtResult<(DevicePtr, usize)>Expand description
Allocate pitched device memory for 2-D arrays.
Mirrors cudaMallocPitch.
Returns (device_ptr, pitch_bytes). pitch_bytes is ≥ width_bytes
and aligned to the hardware’s texture alignment.
§Errors
Propagates driver errors.