diff options
| author | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-10-22 15:31:56 -0600 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-10-23 17:32:04 -0600 |
| commit | dd9a7ec64581fa72c80c4d6b2139fcc9bc20949d (patch) | |
| tree | 06c1f933fd931fc80935a4e723927b872131c86a /include/vulkan.h | |
| parent | 62534c1eeb855c97e6ef2b46183972228120c199 (diff) | |
| download | usermoji-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.h | 16 |
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 { |
