From ea07a7f4e19871791627fe6d03e41ec5d553e990 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 31 Aug 2016 12:00:35 -0700 Subject: layers: Don't spuriously produce an error if there are no view type bits set Previously we'd complain about any input attachment, since we don't constrain its view type at all. Signed-off-by: Chris Forbes --- layers/descriptor_sets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layers/descriptor_sets.cpp') diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp index c7b39f7c..00c0d194 100644 --- a/layers/descriptor_sets.cpp +++ b/layers/descriptor_sets.cpp @@ -429,7 +429,7 @@ bool cvdescriptorset::DescriptorSet::ValidateDrawState(const std::mapviewType)) { + if ((reqs & DESCRIPTOR_REQ_ALL_VIEW_TYPE_BITS) && (~reqs & (1 << image_view_data->viewType))) { // bad view type std::stringstream error_str; error_str << "Descriptor in binding #" << binding << " at global descriptor index " << i -- cgit v1.2.3