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
14
`buffer.byte_count` counts occurrences of `needle_byte & 0xff` in a byte
buffer.

Reference CPU implementation:

```rust
let count = haystack.iter()
    .filter(|&&byte| byte == (needle_byte & 0xff) as u8)
    .count() as u32;
```

WGSL spelling note: each lane contributes `1u` for a masked byte match and
`0u` otherwise, then the implementation reduces by addition.