Commit 821feba5 by Chris Forbes

Remove useless const on ImageView::getImageSizeInBytes return value

This does nothing, and breaks the Android build since the toolchain there uses -Wignored-qualifiers. This is the only case of it in SwiftShader. Change-Id: Ida06e695bd3f303200864a4fd2a797cb4c78dc15 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29888Reviewed-by: 's avatarBen Clayton <bclayton@google.com> Tested-by: 's avatarChris Forbes <chrisforbes@google.com>
parent d6ccc31e
...@@ -50,7 +50,7 @@ public: ...@@ -50,7 +50,7 @@ public:
const VkComponentMapping &getComponentMapping() const { return components; } const VkComponentMapping &getComponentMapping() const { return components; }
const VkImageSubresourceRange &getSubresourceRange() const { return subresourceRange; } const VkImageSubresourceRange &getSubresourceRange() const { return subresourceRange; }
const size_t getImageSizeInBytes() const { return image->getMemoryRequirements().size; } size_t getImageSizeInBytes() const { return image->getMemoryRequirements().size; }
private: private:
bool imageTypesMatch(VkImageType imageType) const; bool imageTypesMatch(VkImageType imageType) const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment