aboutsummaryrefslogtreecommitdiff
path: root/layers
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2016-05-17 06:43:48 -0600
committerMark Lobodzinski <mark@lunarg.com>2016-05-17 11:05:55 -0600
commitced9af88ebb9c37d24cb6cfbaa77104f73f977f6 (patch)
tree93d88bdeaf9ef3e0b7a68f07ce1649732962ecf0 /layers
parent4f7fe373328c9406410df11098593f27f0ed6f5e (diff)
downloadusermoji-ced9af88ebb9c37d24cb6cfbaa77104f73f977f6.tar.xz
layers: Add correct IsStorage() to TexelDescriptor
Similar to Norbert's previous fix for ImageDescriptor, TexelDescriptor was also missing correct IsStorage() override function and so would always return false instead of actual storage_ value. Change-Id: I9006cdb614c5b78db0a68b71dcc4300f4c5c0d7f
Diffstat (limited to 'layers')
-rw-r--r--layers/descriptor_sets.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/layers/descriptor_sets.h b/layers/descriptor_sets.h
index 4594a695..92fda958 100644
--- a/layers/descriptor_sets.h
+++ b/layers/descriptor_sets.h
@@ -231,7 +231,8 @@ class TexelDescriptor : public Descriptor {
TexelDescriptor(const VkDescriptorType, const std::unordered_map<VkBufferView, VkBufferViewCreateInfo> *);
bool WriteUpdate(const VkWriteDescriptorSet *, const uint32_t, std::string *) override;
bool CopyUpdate(const Descriptor *, std::string *) override;
- VkBufferView GetBufferView() const { return buffer_view_; };
+ virtual bool IsStorage() const override { return storage_; }
+ VkBufferView GetBufferView() const { return buffer_view_; }
private:
VkBufferView buffer_view_;