aboutsummaryrefslogtreecommitdiff
path: root/layers/unique_objects.cpp
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2017-12-03 20:16:32 -0800
committerMark Lobodzinski <mark@lunarg.com>2017-12-05 13:55:16 -0700
commit57fb625663db6fe1d11c6fa0f6047b29695aac78 (patch)
treefeae8800ae7b19adfea8d31a55d85d44bf287b94 /layers/unique_objects.cpp
parent4449a761d5dba8a95c536777f6c09be2bc01657e (diff)
downloadusermoji-57fb625663db6fe1d11c6fa0f6047b29695aac78.tar.xz
layers: Add warning for LOAD_OP_LOAD+LAYOUT_UNDEFINED
While not technically an error (VK_IMAGE_LAYOUT_UNDEFINED is always allowed as an initial layout), this combination is almost never what you actually want. If nothing else, it's a potential performance problem because VK_ATTACHMENT_LOAD_OP_LOAD is liable to be more expensive than VK_ATTACHMENT_LOAD_OP_DONT_CARE. Give developers a helpful warning in this case. This would have caught an actual bug in some of the Sascha Willems demos as fixed in this PR: https://github.com/SaschaWillems/Vulkan/pull/400 Change-Id: I73c64ae60a65cfb200db00707d650ec8da7ba130
Diffstat (limited to 'layers/unique_objects.cpp')
0 files changed, 0 insertions, 0 deletions