From c3ad65e09812788360a97f48a66ede6c8daebe9f Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Fri, 23 Oct 2015 13:38:14 -0600 Subject: bug-14827: Remove DescriptorInfo union The DescriptorInfo union is invalid in C++ --- include/vulkan.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'include') 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 ::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 { -- cgit v1.2.3