layers: Require pipeline layout to contain all referenced descriptors
authorChris Forbes <chrisf@ijw.co.nz>
Fri, 14 Aug 2015 00:04:59 +0000 (12:04 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Fri, 18 Sep 2015 00:09:18 +0000 (12:09 +1200)
commite5c1b496841f9a5cdeaee1859806ee00030b7dd0
tree7d251530d3adc46fbf0b27de09ea9e53518a8da3
parent0fead9259393df15056653bcb98543706deaf9a0
layers: Require pipeline layout to contain all referenced descriptors

If the SPIRV image uses a descriptor (for constant buffer, image, etc)
we must declare it in the pipeline layout.

We won't complain about unused junk in the pipeline layout, but not
declaring something that *is* used is an error.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Courtney Goeltzenleuchter <courtney@lunarg.com>
layers/shader_checker.cpp
layers/shader_checker.h