Flutter Impeller
impeller::BlitGenerateMipmapCommandGLES Struct Reference

#include <blit_command_gles.h>

Inheritance diagram for impeller::BlitGenerateMipmapCommandGLES:
impeller::BlitEncodeGLES impeller::BlitGenerateMipmapCommand impeller::BackendCast< BlitEncodeGLES, BlitCommand > impeller::BlitCommand

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 BlitEncodeGLESCast (BlitCommand &base)
 
static const BlitEncodeGLESCast (const BlitCommand &base)
 
static BlitEncodeGLESCast (BlitCommand *base)
 
static const BlitEncodeGLESCast (const BlitCommand *base)
 
- Public Attributes inherited from impeller::BlitGenerateMipmapCommand
std::shared_ptr< Texturetexture
 
- 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 327 of file blit_command_gles.cc.

327  {
328  auto texture_gles = TextureGLES::Cast(texture.get());
329  if (!texture_gles->GenerateMipmap()) {
330  return false;
331  }
332 
333  return true;
334 };
static TextureGLES & Cast(Texture &base)
Definition: backend_cast.h:13
std::shared_ptr< Texture > texture
Definition: blit_command.h:47

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

◆ GetLabel()

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

Implements impeller::BlitEncodeGLES.

Definition at line 323 of file blit_command_gles.cc.

323  {
324  return label;
325 }

References impeller::BlitCommand::label.


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