layers: Validate correct layout for STORAGE_IMAGE descriptors
authorTobin Ehlis <tobine@google.com>
Mon, 10 Oct 2016 20:02:48 +0000 (14:02 -0600)
committerTobin Ehlis <tobine@google.com>
Wed, 12 Oct 2016 03:37:55 +0000 (21:37 -0600)
commit6e62fd77eded55becc241d44ae9d07153fc1ffc0
treefdfa513e0c085eddfa9b34d44156343ec91a8f0a
parented0cd2f95c18b3d3f267c45b149ba435b7d3a0ee
layers: Validate correct layout for STORAGE_IMAGE descriptors

According to the spec "Load and store operations on storage images can only
be done on images in VK_IMAGE_LAYOUT_GENERAL layout."

This change flags an error if a STORAGE_IMAGE descriptor is updated with an
image layout other than GENERAL.
layers/descriptor_sets.cpp