aboutsummaryrefslogtreecommitdiff
path: root/layers/buffer_validation.cpp
diff options
context:
space:
mode:
authorMike Weiblen <mikew@lunarg.com>2017-01-24 13:08:42 -0700
committerMike Weiblen <mikew@lunarg.com>2017-01-27 10:41:56 -0700
commit0bb17d975de61f7b223797e1772b81cd0ab8d43c (patch)
treea885910732f0e1dc553ffc370087beb30f3263be /layers/buffer_validation.cpp
parent8d5226c619572dacf4778aa95dc51a98557f9554 (diff)
downloadusermoji-0bb17d975de61f7b223797e1772b81cd0ab8d43c.tar.xz
layers: GH-909 level/layer Valid Usage checking
Refactor subresourceRange.levelCount and subresourceRange.layerCount checking from PreCallValidateCreateImageView() into a standalone helper function ValidateImageSubrangeLevelLayerCounts() to facilitate reuse below. Add ValidateImageSubrangeLevelLayerCounts() to ValidateBarrier(), to address GH-909. This extends the reuse of Valid Usages 00768 and 00769, which are already tagged as deserving new standalone Valid Usages. This change is implemented such that it will be simple to modify for new VUs, once they're available. Also canonicalize function names passed as parameter to helper function. Change-Id: I8346a19e9b2c4df578334c2aebfb78e6492bd1d9
Diffstat (limited to 'layers/buffer_validation.cpp')
0 files changed, 0 insertions, 0 deletions