Skip to content

Commit

Permalink
Fix shader! using bytes not getting recompiled when the file chan…
Browse files Browse the repository at this point in the history
…ges (#2616)
  • Loading branch information
marc0246 authored Dec 12, 2024
1 parent fc45b6c commit 0c23367
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vulkano-shaders/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,9 @@ fn shader_inner(mut input: MacroInput) -> Result<TokenStream> {
let words = vulkano::shader::spirv::bytes_to_words(&bytes)
.or_else(|err| bail!(path, "failed to read source `{full_path:?}`: {err}"))?;

codegen::reflect(&input, path, name, &words, Vec::new(), &mut type_registry)?
let includes = vec![full_path.into_os_string().into_string().unwrap()];

codegen::reflect(&input, path, name, &words, includes, &mut type_registry)?
}
};

Expand Down

0 comments on commit 0c23367

Please sign in to comment.