aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtney@LunarG.com>2015-10-23 13:38:14 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-10-26 16:24:10 -0600
commitc3ad65e09812788360a97f48a66ede6c8daebe9f (patch)
treeba8089c17d50ece15c157e35f49e638bb132b023 /include
parentbc17d24f11bb1ae3ec57335d11488be9e51a2eac (diff)
downloadusermoji-c3ad65e09812788360a97f48a66ede6c8daebe9f.tar.xz
bug-14827: Remove DescriptorInfo union
The DescriptorInfo union is invalid in C++
Diffstat (limited to 'include')
-rw-r--r--include/vulkan.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/include/vulkan.h b/include/vulkan.h
index e4e56553..312ed70e 100644
--- a/include/vulkan.h
+++ b/include/vulkan.h
@@ -1823,16 +1823,6 @@ typedef struct {
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 {
- VkDescriptorImageInfo imageInfo;
- VkDescriptorBufferInfo bufferInfo;
- VkBufferView texelBufferView;
-} VkDescriptorInfo;
-
typedef struct {
VkStructureType sType;
const void* pNext;
@@ -1841,7 +1831,9 @@ typedef struct {
uint32_t destArrayElement;
uint32_t count;
VkDescriptorType descriptorType;
- const VkDescriptorInfo* pDescriptors;
+ const VkDescriptorImageInfo* pImageInfo;
+ const VkDescriptorBufferInfo* pBufferInfo;
+ const VkBufferView* pTexelBufferView;
} VkWriteDescriptorSet;
typedef struct {