| Flutter Impeller |

Public Member Functions | List of all members
impeller::BlitGenerateMipmapCommandGLES Struct Reference

`#include <blit_command_gles.h>`

Inheritance diagram for impeller::BlitGenerateMipmapCommandGLES:

## Public Member Functions
| ~BlitGenerateMipmapCommandGLES () override
std::string | GetLabel () const override
bool | Encode (const ReactorGLES &reactor) const override
Public Member Functions inherited from impeller::BlitEncodeGLES
virtual | ~BlitEncodeGLES ()

## Additional Inherited Members
Static Public Member Functions inherited from impeller::BackendCast< BlitEncodeGLES, BlitCommand >
static BlitEncodeGLES & | Cast (BlitCommand &base)
static const BlitEncodeGLES & | Cast (const BlitCommand &base)
static BlitEncodeGLES * | Cast (BlitCommand *base)
static const BlitEncodeGLES * | Cast (const BlitCommand *base)
Public Attributes inherited from impeller::BlitGenerateMipmapCommand
std::shared_ptr< Texture > | texture
Public Attributes inherited from impeller::BlitCommand
std::string | label

## Detailed Description

Definition at line 53 of file blit_command_gles.h.

## Constructor & Destructor Documentation

## ◆ ~BlitGenerateMipmapCommandGLES()

impeller::BlitGenerateMipmapCommandGLES::~BlitGenerateMipmapCommandGLES | ( |  | ) |
| overridedefault

## Member Function Documentation

## ◆ Encode()

bool impeller::BlitGenerateMipmapCommandGLES::Encode | ( | const ReactorGLES & | reactor | ) | const
| overridevirtual

Implements impeller::BlitEncodeGLES.

Definition at line 346 of file blit_command_gles.cc.

346 {
347 auto texture_gles = TextureGLES::Cast(texture.get());
348 if (!texture_gles->GenerateMipmap()) {
349 return false;
350 }
351
352 return true;
353 };

References impeller::BackendCast< TextureGLES, Texture >::Cast(), and impeller::BlitGenerateMipmapCommand::texture.

## ◆ GetLabel()

std::string impeller::BlitGenerateMipmapCommandGLES::GetLabel | ( |  | ) | const
| overridevirtual

Implements impeller::BlitEncodeGLES.

Definition at line 342 of file blit_command_gles.cc.

342 {
343 return label;
344 }

References impeller::BlitCommand::label.

The documentation for this struct was generated from the following files:

- impeller/renderer/backend/gles/blit_command_gles.h
- impeller/renderer/backend/gles/blit_command_gles.cc

impeller::BlitGenerateMipmapCommand::texture
std::shared_ptr< Texture > texture
Definition: blit_command.h:45
impeller::BlitCommand::label
std::string label
Definition: blit_command.h:15
impeller::BackendCast< TextureGLES, Texture >::Cast
static TextureGLES & Cast(Texture &base)
Definition: backend_cast.h:13