vyre-wgpu 0.1.0

wgpu backend for vyre IR — implements VyreBackend, owns GPU runtime, buffer pool, pipeline cache
Documentation
//! Doc.

use bytemuck::{Pod, Zeroable};

/// Uniform words consumed by the LZ4 decompression shader.
#[repr(C)]
#[derive(Copy, Clone, Debug, Pod, Zeroable)]
pub struct Lz4Uniforms {
    /// Compressed input length in bytes.
    pub input_len: u32,
    /// Maximum decompressed output length the shader may write, in bytes.
    pub output_len: u32,
    /// Exact decompressed byte length returned to the caller after readback.
    pub total_output_size: u32,
}

/// Uniform words consumed by the zstd raw/RLE decompression shader.
#[repr(C)]
#[derive(Copy, Clone, Debug, Pod, Zeroable)]
pub struct ZstdUniforms {
    /// Compressed input length in bytes.
    pub input_len: u32,
    /// Maximum decompressed output length the shader may write, in bytes.
    pub output_len: u32,
    /// Exact decompressed byte length returned to the caller after readback.
    pub total_output_size: u32,
}