5 #ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_BLIT_PASS_VK_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_BLIT_PASS_VK_H_
14 class CommandEncoderVK;
15 class CommandBufferVK;
25 std::shared_ptr<CommandBufferVK> command_buffer_;
28 explicit BlitPassVK(std::shared_ptr<CommandBufferVK> command_buffer);
31 bool IsValid()
const override;
34 void OnSetLabel(std::string label)
override;
38 const std::shared_ptr<Allocator>& transients_allocator)
const override;
41 bool ResizeTexture(
const std::shared_ptr<Texture>& source,
42 const std::shared_ptr<Texture>& destination)
override;
45 bool ConvertTextureToShaderRead(
46 const std::shared_ptr<Texture>& texture)
override;
49 bool OnCopyTextureToTextureCommand(std::shared_ptr<Texture> source,
50 std::shared_ptr<Texture> destination,
53 std::string label)
override;
56 bool OnCopyTextureToBufferCommand(std::shared_ptr<Texture> source,
57 std::shared_ptr<DeviceBuffer> destination,
59 size_t destination_offset,
60 std::string label)
override;
63 bool OnCopyBufferToTextureCommand(
BufferView source,
64 std::shared_ptr<Texture> destination,
65 IRect destination_region,
68 bool convert_to_read)
override;
70 bool OnGenerateMipmapCommand(std::shared_ptr<Texture> texture,
71 std::string label)
override;
80 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_BLIT_PASS_VK_H_