spirv_tools::binary

Function to_binary

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

Transmutes a regular byte array into a SPIRV binary of 32 bit words. Fails if the input is not input.as_ptr() % 4 and input.len() % 4.