use custos::{Buffer, OpenCL}; fn main() -> custos::Result<()> { let device = OpenCL::new(0)?; let mut a = Buffer::from((&device, [5, 3, 2, 4, 6, 2])); a.clear(); assert_eq!(a.read(), [0; 6]); Ok(()) }