include!(concat!(env!("OUT_DIR"), "/shaders_generated.rs"));
pub fn blob(name: &str) -> Option<&'static [u8]> {
SHADER_BLOBS
.iter()
.find(|(n, _)| *n == name)
.map(|(_, b)| *b)
}
pub fn names() -> impl Iterator<Item = &'static str> {
SHADER_BLOBS.iter().map(|(n, _)| *n)
}
pub fn words(blob: &[u8]) -> Vec<u32> {
assert!(
blob.len().is_multiple_of(4),
"rlx-vulkan: SPIR-V blob length {} not a multiple of 4",
blob.len()
);
blob.chunks_exact(4)
.map(|c| u32::from_le_bytes([c[0], c[1], c[2], c[3]]))
.collect()
}