Check for identity swizzle in image views bound as input atch or storage

This commit is contained in:
Pierre Krieger 2016-03-28 09:42:59 +02:00
parent 16a3f7a9f2
commit c4cc6e0349

View File

@ -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,