INNER CODE UNIT · Rust

data

EmbarkStudios/rust-gpu · crates/rustc_codegen_spirv/src/lib.rs:178

    fn data(&self) -> &[u8] {
        spirv_tools::binary::from_binary(&self.0)
    }
}

// TODO: Should this store Vec or Module?
struct SpirvThinBuffer(Vec<u32>);

impl ThinBufferMethods for SpirvThinBuffer {
    fn data(&self) -> &[u8] {
        spirv_tools::binary::from_binary(&self.0)
    }
}

#[derive(Clone)]
struct SpirvCodegenBackend;

impl CodegenBackend for SpirvCodegenBackend {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…