Skip to content

Commit cae5c50

Browse files
committed
started setting TextureVK::mipmaps_generated_
1 parent 590a245 commit cae5c50

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

impeller/renderer/backend/vulkan/blit_command_vk.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ bool BlitGenerateMipmapCommandVK::Encode(CommandEncoderVK& encoder) const {
353353
// state so it doesn't try to perform redundant transitions under the hood.
354354
src.SetLayoutWithoutEncoding(vk::ImageLayout::eShaderReadOnlyOptimal);
355355

356+
src.SetMipMapGenerated();
356357
return true;
357358
}
358359

impeller/renderer/backend/vulkan/texture_vk.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class TextureVK final : public Texture, public BackendCast<TextureVK, Texture> {
3838

3939
std::shared_ptr<const TextureSourceVK> GetTextureSource() const;
4040

41+
void SetMipMapGenerated() { mipmap_generated_ = true; }
42+
4143
private:
4244
std::weak_ptr<Context> context_;
4345
std::shared_ptr<TextureSourceVK> source_;

0 commit comments

Comments
 (0)