vyre 0.4.0

GPU compute intermediate representation with a standard operation library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Byte buffer fill operation module.

// Backend-specific lowering for memset.



// CPU reference kernel for `buffer.memset`.

/// Return `len` bytes filled with `value & 0xff`.
#[must_use]
pub fn memset(len: u32, value: u32) -> Vec<u8> {
    vec![(value & 0xff) as u8; len as usize]
}