SPV: Issue #180: push_constants don't have descriptor sets.
diff --git a/SPIRV/GlslangToSpv.cpp b/SPIRV/GlslangToSpv.cpp
index 1676b9d..1a8ba44 100755
--- a/SPIRV/GlslangToSpv.cpp
+++ b/SPIRV/GlslangToSpv.cpp
@@ -521,9 +521,9 @@
// descriptor set.
bool IsDescriptorResource(const glslang::TType& type)
{
- // uniform and buffer blocks are included
+ // uniform and buffer blocks are included, unless it is a push_constant
if (type.getBasicType() == glslang::EbtBlock)
- return type.getQualifier().isUniformOrBuffer();
+ return type.getQualifier().isUniformOrBuffer() && ! type.getQualifier().layoutPushConstant;
// non block...
// basically samplerXXX/subpass/sampler/texture are all included