12 const std::shared_ptr<CommandBuffer>& command_buffer,
13 const std::shared_ptr<Context>& context,
14 const std::shared_ptr<Texture>&
texture) {
15 std::shared_ptr<BlitPass> blit_pass = command_buffer->CreateBlitPass();
16 bool success = blit_pass->GenerateMipmap(
texture);
20 success = blit_pass->EncodeCommands(context->GetResourceAllocator());
fml::Status AddMipmapGeneration(const std::shared_ptr< CommandBuffer > &command_buffer, const std::shared_ptr< Context > &context, const std::shared_ptr< Texture > &texture)
Adds a blit command to the render pass.