vyre_wgpu/engine/decompress/uniforms/mod.rs
1//! Doc.
2
3use bytemuck::{Pod, Zeroable};
4
5/// Uniform words consumed by the LZ4 decompression shader.
6#[repr(C)]
7#[derive(Copy, Clone, Debug, Pod, Zeroable)]
8pub struct Lz4Uniforms {
9 /// Compressed input length in bytes.
10 pub input_len: u32,
11 /// Maximum decompressed output length the shader may write, in bytes.
12 pub output_len: u32,
13 /// Exact decompressed byte length returned to the caller after readback.
14 pub total_output_size: u32,
15}
16
17/// Uniform words consumed by the zstd raw/RLE decompression shader.
18#[repr(C)]
19#[derive(Copy, Clone, Debug, Pod, Zeroable)]
20pub struct ZstdUniforms {
21 /// Compressed input length in bytes.
22 pub input_len: u32,
23 /// Maximum decompressed output length the shader may write, in bytes.
24 pub output_len: u32,
25 /// Exact decompressed byte length returned to the caller after readback.
26 pub total_output_size: u32,
27}