mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 00:04:15 +00:00
Fix number of sets in vulkano-shaders (#764)
This commit is contained in:
parent
2f2b97e5d5
commit
0f05fc8d57
@ -118,7 +118,7 @@ pub fn write_descriptor_sets(doc: &parse::Spirv) -> String {
|
||||
.collect::<Vec<_>>()
|
||||
.concat();
|
||||
|
||||
let num_sets = 1 + descriptors.iter().fold(0, |s, d| cmp::max(s, d.set));
|
||||
let num_sets = descriptors.iter().fold(0, |s, d| cmp::max(s, d.set + 1));
|
||||
|
||||
// Writing the body of the `num_bindings_in_set` method.
|
||||
let num_bindings_in_set_body = {
|
||||
|
Loading…
Reference in New Issue
Block a user