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

Function validate

crates/rustc_codegen_spirv/src/linker/test.rs:43–51  ·  view source on GitHub ↗
(spirv: &[u32])

Source from the content-addressed store, hash-verified

41
42#[allow(unused)]
43fn validate(spirv: &[u32]) {
44 use spirv_tools::val::{self, Validator};
45
46 let validator = val::create(None);
47
48 validator
49 .validate(spirv, None)
50 .expect("validation error occurred");
51}
52
53fn load(bytes: &[u8]) -> Module {
54 let mut loader = Loader::new();

Callers

nothing calls this directly

Calls 1

expectMethod · 0.80

Tested by

no test coverage detected