mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-29 10:14:29 +00:00
fix immutable_samplers index in builder (#1704)
This commit is contained in:
parent
786e02b174
commit
54cb28d4e5
@ -384,7 +384,7 @@ impl DescriptorSetBuilder {
|
||||
));
|
||||
}
|
||||
|
||||
if !image_view.can_be_sampled(&immutable_samplers[self.cur_binding as usize]) {
|
||||
if !image_view.can_be_sampled(&immutable_samplers[descriptor.array_element as usize]) {
|
||||
return Err(DescriptorSetError::IncompatibleImageViewSampler);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user