Function vulkano::shader::spirv::bytes_to_words
source · pub fn bytes_to_words(
bytes: &[u8]
) -> Result<Cow<'_, [u32]>, SpirvBytesNotMultipleOf4>
Expand description
Converts SPIR-V bytes to words. If necessary, the byte order is swapped from little-endian to native-endian.