aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtney@LunarG.com>2015-09-11 15:29:21 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-09-15 10:16:02 -0600
commit609c6c84318e264fdb6c9e7d5997cc1bae16d707 (patch)
tree782ef1a24eb807a6dc227b73e64c929b4de47d10 /include
parentc6bc61de8e7088ed3b97ae3258f038129d831432 (diff)
downloadusermoji-609c6c84318e264fdb6c9e7d5997cc1bae16d707.tar.xz
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.
Diffstat (limited to 'include')
-rw-r--r--include/vulkan.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/vulkan.h b/include/vulkan.h
index 15e96c15..c031488d 100644
--- a/include/vulkan.h
+++ b/include/vulkan.h
@@ -1779,10 +1779,17 @@ typedef struct {
} 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 {