Function nannou::wgpu::util::make_spirv [−][src]
pub fn make_spirv(data: &'a [u8]) -> ShaderSource<'a>
Treat the given byte slice as a SPIR-V module.
Panic
This function panics if:
- Input length isn’t multiple of 4
- Input is longer than
usize::max_value
- SPIR-V magic number is missing from beginning of stream