Commit 6d905c76 by Charlie Lao Committed by Commit Bot

Vulkan: Remove initImmutableImage and use initImage instead

This is follow up of crrev.com/c/2368038. There was concern that initImmutableImage and initImage are a bit duplicated. This CL gets rid of initImmutableImage and uses initImage instead. Bug: b/181800403 Change-Id: I2c73c7ce979792cc762214f1e5ef9978eeab6212 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2800422 Commit-Queue: Charlie Lao <cclao@google.com> Reviewed-by: 's avatarIan Elliott <ianelliott@google.com> Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org>
parent 92d3912d
...@@ -410,9 +410,9 @@ class TextureVk : public TextureImpl, public angle::ObserverInterface ...@@ -410,9 +410,9 @@ class TextureVk : public TextureImpl, public angle::ObserverInterface
angle::Result initImage(ContextVk *contextVk, angle::Result initImage(ContextVk *contextVk,
const vk::Format &format, const vk::Format &format,
const bool sized, const bool sized,
const gl::Extents &extents, const gl::Extents &firstLevelExtents,
const uint32_t firstLevel,
const uint32_t levelCount); const uint32_t levelCount);
angle::Result initImmutableImage(ContextVk *contextVk, const vk::Format &format);
void releaseImage(ContextVk *contextVk); void releaseImage(ContextVk *contextVk);
void releaseStagingBuffer(ContextVk *contextVk); void releaseStagingBuffer(ContextVk *contextVk);
uint32_t getMipLevelCount(ImageMipLevels mipLevels) const; uint32_t getMipLevelCount(ImageMipLevels mipLevels) 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