MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / load

Function load

crates/rustc_codegen_spirv/src/linker/test.rs:53–57  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

51}
52
53fn load(bytes: &[u8]) -> Module {
54 let mut loader = Loader::new();
55 rspirv::binary::parse_bytes(bytes, &mut loader).unwrap();
56 loader.module()
57}
58
59// FIXME(eddyb) shouldn't this be named just `link`? (`assemble_spirv` is separate)
60fn assemble_and_link(binaries: &[&[u8]]) -> Result<Module, PrettyString> {

Callers 1

load_operandMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected