43eabee68a
170: SPIR-V reading helper r=MaikKlein a=Ralith SPIR-V is defined in terms of 4-byte words and does not have a defined endianness, and compiler and target endianness may differ. Furthermore, Vulkan seems to require SPIR-V supplied to the implementation to be 4-byte-aligned. As a result, reading SPIR-V in a safe and portable fashion is error-prone. So far we have largely shied away from including nontrivial helper code in ash, but arguably most portable code using ash will want this function. Do we want to break precedent? Or should we introduce a separate, optional, utility crate for code that doesn't directly wrap some part of Vulkan? Co-authored-by: Benjamin Saunders <ben.e.saunders@gmail.com> |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |