[][src]Function spirv_tools::binary::to_binary

pub fn to_binary(bytes: &[u8]) -> Result<&[u32], Error>

Transmutes a regular byte array into a SPIRV binary of 32 bit words. This will fail if the input is not % sizeof(u32)