layers: Get rid of pre-call updates in AllocateDescriptorSets
authorChris Forbes <chrisforbes@google.com>
Fri, 20 May 2016 04:34:01 +0000 (16:34 +1200)
committerChris Forbes <chrisforbes@google.com>
Sun, 22 May 2016 23:15:19 +0000 (11:15 +1200)
commit6511ce241f7f210211e0c0e882f3c14889071f4d
treea117c0d23d78cfac994616c7a49e2d9ebf43f93c
parente5ed0a0317fff097249065194049a589c0a3a3b2
layers: Get rid of pre-call updates in AllocateDescriptorSets

Moving all the updates later requires that we totalize the required
descriptors by type first, rather than testing each binding's
requirement as we go.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
layers/core_validation.cpp