#include <texture_gles.h>
Public Types | |
| enum | Type { Type::kTexture, Type::kTextureMultisampled, Type::kRenderBuffer, Type::kRenderBufferMultisampled } |
| enum | IsWrapped { IsWrapped::kWrapped } |
| enum | AttachmentType { AttachmentType::kColor0, AttachmentType::kDepth, AttachmentType::kStencil } |
Public Member Functions | |
| TextureGLES (ReactorGLES::Ref reactor, TextureDescriptor desc) | |
| TextureGLES (ReactorGLES::Ref reactor, TextureDescriptor desc, IsWrapped wrapped) | |
| ~TextureGLES () override | |
| std::optional< GLuint > | GetGLHandle () const |
| bool | Bind () const |
| bool | GenerateMipmap () |
| bool | SetAsFramebufferAttachment (GLenum target, AttachmentType attachment_type) const |
| Type | GetType () const |
| bool | IsWrapped () const |
Public Member Functions inherited from impeller::Texture | |
| virtual | ~Texture () |
| bool | SetContents (const uint8_t *contents, size_t length, size_t slice=0, bool is_opaque=false) |
| bool | SetContents (std::shared_ptr< const fml::Mapping > mapping, size_t slice=0, bool is_opaque=false) |
| bool | IsOpaque () const |
| size_t | GetMipCount () const |
| const TextureDescriptor & | GetTextureDescriptor () const |
| void | SetCoordinateSystem (TextureCoordinateSystem coordinate_system) |
| TextureCoordinateSystem | GetCoordinateSystem () const |
| bool | NeedsMipmapGeneration () const |
Friends | |
| class | AllocatorMTL |
Additional Inherited Members | |
Static Public Member Functions inherited from impeller::BackendCast< TextureGLES, Texture > | |
| static TextureGLES & | Cast (Texture &base) |
| static const TextureGLES & | Cast (const Texture &base) |
| static TextureGLES * | Cast (Texture *base) |
| static const TextureGLES * | Cast (const Texture *base) |
Protected Member Functions inherited from impeller::Texture | |
| Texture (TextureDescriptor desc) | |
Protected Attributes inherited from impeller::Texture | |
| bool | mipmap_generated_ = false |
Definition at line 15 of file texture_gles.h.
|
strong |
| Enumerator | |
|---|---|
| kColor0 | |
| kDepth | |
| kStencil | |
Definition at line 44 of file texture_gles.h.
|
strong |
|
strong |
| Enumerator | |
|---|---|
| kTexture | |
| kTextureMultisampled | |
| kRenderBuffer | |
| kRenderBufferMultisampled | |
Definition at line 18 of file texture_gles.h.
| impeller::TextureGLES::TextureGLES | ( | ReactorGLES::Ref | reactor, |
| TextureDescriptor | desc | ||
| ) |
Definition at line 70 of file texture_gles.cc.
| impeller::TextureGLES::TextureGLES | ( | ReactorGLES::Ref | reactor, |
| TextureDescriptor | desc, | ||
| IsWrapped | wrapped | ||
| ) |
Definition at line 73 of file texture_gles.cc.
|
override |
Definition at line 105 of file texture_gles.cc.
| bool impeller::TextureGLES::Bind | ( | ) | const |
Definition at line 425 of file texture_gles.cc.
References GetGLHandle(), impeller::Texture::GetTextureDescriptor(), kRenderBuffer, kRenderBufferMultisampled, kTexture, kTextureMultisampled, impeller::ToTextureTarget(), and VALIDATION_LOG.
Referenced by GenerateMipmap().
| bool impeller::TextureGLES::GenerateMipmap | ( | ) |
Definition at line 450 of file texture_gles.cc.
References Bind(), GetGLHandle(), impeller::Texture::GetTextureDescriptor(), impeller::kTexture2D, impeller::kTexture2DMultisample, impeller::kTextureCube, impeller::kTextureExternalOES, impeller::Texture::mipmap_generated_, impeller::ToTextureType(), impeller::TextureDescriptor::type, and VALIDATION_LOG.
| std::optional< GLuint > impeller::TextureGLES::GetGLHandle | ( | ) | const |
Definition at line 418 of file texture_gles.cc.
Referenced by Bind(), impeller::ConfigureFBO(), GenerateMipmap(), and SetAsFramebufferAttachment().
| TextureGLES::Type impeller::TextureGLES::GetType | ( | ) | const |
Definition at line 484 of file texture_gles.cc.
|
inline |
Definition at line 55 of file texture_gles.h.
| bool impeller::TextureGLES::SetAsFramebufferAttachment | ( | GLenum | target, |
| AttachmentType | attachment_type | ||
| ) | const |
Definition at line 499 of file texture_gles.cc.
References GetGLHandle(), kRenderBuffer, kRenderBufferMultisampled, kTexture, kTextureMultisampled, and impeller::ToAttachmentType().
Referenced by impeller::ConfigureFBO().
|
friend |
Definition at line 58 of file texture_gles.h.