aboutsummaryrefslogtreecommitdiff
path: root/include/vulkan.h
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtney@LunarG.com>2015-10-22 15:31:56 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-10-23 17:32:04 -0600
commitdd9a7ec64581fa72c80c4d6b2139fcc9bc20949d (patch)
tree06c1f933fd931fc80935a4e723927b872131c86a /include/vulkan.h
parent62534c1eeb855c97e6ef2b46183972228120c199 (diff)
downloadusermoji-dd9a7ec64581fa72c80c4d6b2139fcc9bc20949d.tar.xz
bug-14827: Make DescriptorInfo a union of bufferInfo, imageInfo, and bufferView
Diffstat (limited to 'include/vulkan.h')
-rw-r--r--include/vulkan.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/include/vulkan.h b/include/vulkan.h
index c85d5112..ebff03f3 100644
--- a/include/vulkan.h
+++ b/include/vulkan.h
@@ -1813,17 +1813,25 @@ typedef struct {
} VkDescriptorPoolCreateInfo;
typedef struct {
+ VkSampler sampler;
+ VkImageView imageView;
+ VkImageLayout imageLayout;
+} VkDescriptorImageInfo;
+
+typedef struct {
VkBuffer buffer;
VkDeviceSize offset;
VkDeviceSize range;
} VkDescriptorBufferInfo;
+/* TODO: this should be union, except that causes a compiler error:
+ * error: member 'VkDescriptorImageInfo <anonymous union>::imageInfo' with constructor not allowed in union
+ * This issue should go away when the change to remove the constructor lands.
+ */
typedef struct {
- VkBufferView bufferView;
- VkSampler sampler;
- VkImageView imageView;
- VkImageLayout imageLayout;
+ VkDescriptorImageInfo imageInfo;
VkDescriptorBufferInfo bufferInfo;
+ VkBufferView texelBufferView;
} VkDescriptorInfo;
typedef struct {