fix immutable_samplers index in builder (#1704)

This commit is contained in:
Austin Johnson 2021-09-13 09:28:14 -05:00 committed by GitHub
parent 786e02b174
commit 54cb28d4e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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); return Err(DescriptorSetError::IncompatibleImageViewSampler);
} }