From 609c6c84318e264fdb6c9e7d5997cc1bae16d707 Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Fri, 11 Sep 2015 15:29:21 -0600 Subject: Bug 14583: Remove VkBufferView for UBO/SSBO descriptor types For descriptor types: VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER VK_DESCRIPTOR_TYPE_STORAGE_BUFFER VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC No longer need to create a VkBufferView, instead can put the buffer, offset and range directly into a descriptor. Many places in the driver assumed it could point to a persistent buffer view and that is no longer the case. Now cache the view info rather than a pointer to deal with that. --- include/vulkan.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/vulkan.h') diff --git a/include/vulkan.h b/include/vulkan.h index 15e96c15..c031488d 100644 --- a/include/vulkan.h +++ b/include/vulkan.h @@ -1778,11 +1778,18 @@ typedef struct { const VkDescriptorTypeCount* pTypeCount; } VkDescriptorPoolCreateInfo; +typedef struct { + VkBuffer buffer; + VkDeviceSize offset; + VkDeviceSize range; +} VkShaderBufferInfo; + typedef struct { VkBufferView bufferView; VkSampler sampler; VkImageView imageView; VkImageLayout imageLayout; + VkShaderBufferInfo shaderBuffer; } VkDescriptorInfo; typedef struct { -- cgit v1.2.3