mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 08:14:20 +00:00
Check for identity swizzle in image views bound as input atch or storage
This commit is contained in:
parent
16a3f7a9f2
commit
c4cc6e0349
@ -176,6 +176,7 @@ impl<S> DescriptorSet<S> where S: SetLayout {
|
||||
},
|
||||
DescriptorBind::StorageImage(ref image, layout) => {
|
||||
assert!(image.inner_view().usage_storage());
|
||||
assert!(image.identity_swizzle());
|
||||
self_resources_image_views.push(image.clone());
|
||||
Some(vk::DescriptorImageInfo {
|
||||
sampler: 0,
|
||||
@ -194,6 +195,7 @@ impl<S> DescriptorSet<S> where S: SetLayout {
|
||||
},
|
||||
DescriptorBind::InputAttachment(ref image, layout) => {
|
||||
assert!(image.inner_view().usage_input_attachment());
|
||||
assert!(image.identity_swizzle());
|
||||
self_resources_image_views.push(image.clone());
|
||||
Some(vk::DescriptorImageInfo {
|
||||
sampler: 0,
|
||||
|
Loading…
Reference in New Issue
Block a user