diff options
author | Jason Ekstrand <[email protected]> | 2015-10-15 13:45:53 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-10-15 13:45:53 -0700 |
commit | bed7d1e03cfb03148e65566d299430063e90a47a (patch) | |
tree | a38a362f4c269c7f9add85530bed6e154a90ea02 /src/vulkan/anv_private.h | |
parent | 6dc4cad994ca03b71f99b79856d8d8ff5cf3ed83 (diff) |
anv: Add support for BufferInfo in descriptor sets
Diffstat (limited to 'src/vulkan/anv_private.h')
-rw-r--r-- | src/vulkan/anv_private.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index bcfb6fada50..6bbf7c0291b 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -696,18 +696,30 @@ struct anv_descriptor_set_layout { enum anv_descriptor_type { ANV_DESCRIPTOR_TYPE_EMPTY = 0, ANV_DESCRIPTOR_TYPE_BUFFER_VIEW, + ANV_DESCRIPTOR_TYPE_BUFFER_AND_OFFSET, ANV_DESCRIPTOR_TYPE_IMAGE_VIEW, ANV_DESCRIPTOR_TYPE_SAMPLER, + ANV_DESCRIPTOR_TYPE_IMAGE_VIEW_AND_SAMPLER, }; struct anv_descriptor { + enum anv_descriptor_type type; + union { - struct anv_buffer_view *buffer_view; - struct anv_image_view *image_view; - struct anv_sampler *sampler; - }; + struct { + union { + struct anv_buffer_view *buffer_view; + struct anv_image_view *image_view; + }; + struct anv_sampler *sampler; + }; - enum anv_descriptor_type type; + struct { + struct anv_buffer *buffer; + uint64_t offset; + uint64_t range; + }; + }; }; struct anv_descriptor_set { |