aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2016-06-21 12:34:33 -0600
committerTobin Ehlis <tobine@google.com>2016-06-27 14:26:55 -0600
commitd975e91286da24af56770b1b6734edc0bcab6ece (patch)
treeb0e6608a5af3d8c3e503a508d38b9c537484a9f7 /layers/core_validation.cpp
parent294ebb116165dc57fcfc712009b872267fd3ad98 (diff)
downloadusermoji-d975e91286da24af56770b1b6734edc0bcab6ece.tar.xz
layers: GH616 Improve descriptor set invalid binding handling
Prior to calls to get an global index from a binding, make sure that HasBinding() is called to verify that the binding exists. Added HasBinding() calls to a couple of validation functions for early exist. Updated code comment to indicate that HasBinding() call should precede GetGlobal*IndexFromBinding() calls. Added assert() to GetGlobal*IndexFromBinding() calls in the error case to make error more obvious in debug builds. Note that Perform*Update() functions already indicate that they should be preceded by their matching Validate*Update() functions, which include the appropriate checks for HasBinding(). case the Validate*Update() funciont
Diffstat (limited to 'layers/core_validation.cpp')
0 files changed, 0 insertions, 0 deletions