aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Forbes <chrisforbes@google.com>2016-07-25 18:11:50 +1200
committerChris Forbes <chrisforbes@google.com>2016-08-01 09:13:51 +1200
commit40f0fc36c8bf1eb0bb0440b43d7b723134ef13c9 (patch)
tree9cafc8b44fafa76cd21652bfbd8b64eb9039349b
parent76867e88bdd26082354093888b038a84773caf62 (diff)
downloadusermoji-40f0fc36c8bf1eb0bb0440b43d7b723134ef13c9.tar.xz
layers: Add enum for descriptor requirements
Signed-off-by: Chris Forbes <chrisforbes@google.com>
-rw-r--r--layers/core_validation_types.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/layers/core_validation_types.h b/layers/core_validation_types.h
index e7ee5686..8b13a93f 100644
--- a/layers/core_validation_types.h
+++ b/layers/core_validation_types.h
@@ -85,6 +85,23 @@ template <> struct hash<VK_OBJECT> {
};
}
+
+// Flags describing requirements imposed by the pipeline on a descriptor. These
+// can't be checked at pipeline creation time as they depend on the Image or
+// ImageView bound.
+enum descriptor_req {
+ DESCRIPTOR_REQ_VIEW_TYPE_1D = 1 << VK_IMAGE_VIEW_TYPE_1D,
+ DESCRIPTOR_REQ_VIEW_TYPE_1D_ARRAY = 1 << VK_IMAGE_VIEW_TYPE_1D_ARRAY,
+ DESCRIPTOR_REQ_VIEW_TYPE_2D = 1 << VK_IMAGE_VIEW_TYPE_2D,
+ DESCRIPTOR_REQ_VIEW_TYPE_2D_ARRAY = 1 << VK_IMAGE_VIEW_TYPE_2D_ARRAY,
+ DESCRIPTOR_REQ_VIEW_TYPE_3D = 1 << VK_IMAGE_VIEW_TYPE_3D,
+ DESCRIPTOR_REQ_VIEW_TYPE_CUBE = 1 << VK_IMAGE_VIEW_TYPE_CUBE,
+ DESCRIPTOR_REQ_VIEW_TYPE_CUBE_ARRAY = 1 << VK_IMAGE_VIEW_TYPE_CUBE_ARRAY,
+
+ DESCRIPTOR_REQ_SINGLE_SAMPLE = 2 << VK_IMAGE_VIEW_TYPE_END_RANGE,
+ DESCRIPTOR_REQ_MULTI_SAMPLE = DESCRIPTOR_REQ_SINGLE_SAMPLE << 1,
+};
+
struct DESCRIPTOR_POOL_NODE {
VkDescriptorPool pool;
uint32_t maxSets; // Max descriptor sets allowed in this pool