[−][src]Function wgpu::util::make_spirv
pub fn make_spirv<'a>(data: &'a [u8]) -> ShaderModuleSource<'a>
Treat the given by slice as a SPIR-V module.
Errors
Returns errors when:
- Input length is not divisible by 4
- Input is longer than usize::max_value()
- SPIR-V magic number is missing from beginning of stream