#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 (ReactorGLES::Ref reactor, TextureDescriptor desc, HandleGLES external_handle) | |
| ~TextureGLES () override | |
| bool | IsValid () const 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 |
| std::optional< GLuint > | GetFBO () const |
| void | MarkSliceInitialized (size_t slice) const |
| bool | IsSliceInitialized (size_t slice) 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 |
Static Public Member Functions | |
| static std::shared_ptr< TextureGLES > | WrapFBO (ReactorGLES::Ref reactor, TextureDescriptor desc, GLuint fbo) |
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) |
Additional Inherited Members | |
Protected Member Functions inherited from impeller::Texture | |
| Texture (TextureDescriptor desc) | |
Protected Attributes inherited from impeller::Texture | |
| bool | mipmap_generated_ = false |
Definition at line 17 of file texture_gles.h.
|
strong |
| Enumerator | |
|---|---|
| kColor0 | |
| kDepth | |
| kStencil | |
Definition at line 57 of file texture_gles.h.
|
strong |
|
strong |
| Enumerator | |
|---|---|
| kTexture | |
| kTextureMultisampled | |
| kRenderBuffer | |
| kRenderBufferMultisampled | |
Definition at line 20 of file texture_gles.h.
| impeller::TextureGLES::TextureGLES | ( | ReactorGLES::Ref | reactor, |
| TextureDescriptor | desc | ||
| ) |
| impeller::TextureGLES::TextureGLES | ( | ReactorGLES::Ref | reactor, |
| TextureDescriptor | desc, | ||
| IsWrapped | wrapped | ||
| ) |
Definition at line 146 of file texture_gles.cc.
| impeller::TextureGLES::TextureGLES | ( | ReactorGLES::Ref | reactor, |
| TextureDescriptor | desc, | ||
| HandleGLES | external_handle | ||
| ) |
Definition at line 151 of file texture_gles.cc.
|
override |
Definition at line 199 of file texture_gles.cc.
| bool impeller::TextureGLES::Bind | ( | ) | const |
Definition at line 444 of file texture_gles.cc.
References GetGLHandle(), impeller::Texture::GetTextureDescriptor(), kRenderBuffer, kRenderBufferMultisampled, kTexture, kTextureMultisampled, impeller::ToTextureTarget(), type, and VALIDATION_LOG.
Referenced by GenerateMipmap().
| bool impeller::TextureGLES::GenerateMipmap | ( | ) |
Definition at line 477 of file texture_gles.cc.
References Bind(), GetGLHandle(), impeller::Texture::GetTextureDescriptor(), IsValid(), impeller::kTexture2D, impeller::kTexture2DMultisample, impeller::kTextureCube, impeller::kTextureExternalOES, impeller::Texture::mipmap_generated_, impeller::ToTextureType(), impeller::TextureDescriptor::type, type, and VALIDATION_LOG.
| std::optional< GLuint > impeller::TextureGLES::GetFBO | ( | ) | const |
Definition at line 587 of file texture_gles.cc.
| std::optional< GLuint > impeller::TextureGLES::GetGLHandle | ( | ) | const |
Definition at line 437 of file texture_gles.cc.
References IsValid().
Referenced by Bind(), impeller::ConfigureFBO(), impeller::BlitCopyBufferToTextureCommandGLES::Encode(), GenerateMipmap(), impeller::interop::ImpellerTextureGetOpenGLHandle(), and SetAsFramebufferAttachment().
| TextureGLES::Type impeller::TextureGLES::GetType | ( | ) | const |
Definition at line 511 of file texture_gles.cc.
Referenced by impeller::BlitCopyBufferToTextureCommandGLES::Encode().
| bool impeller::TextureGLES::IsSliceInitialized | ( | size_t | slice | ) | const |
Definition at line 473 of file texture_gles.cc.
Referenced by impeller::BlitCopyBufferToTextureCommandGLES::Encode().
|
overridevirtual |
Implements impeller::Texture.
Definition at line 204 of file texture_gles.cc.
Referenced by GenerateMipmap(), GetGLHandle(), and SetAsFramebufferAttachment().
| bool impeller::TextureGLES::IsWrapped | ( | ) | const |
| void impeller::TextureGLES::MarkSliceInitialized | ( | size_t | slice | ) | const |
Definition at line 469 of file texture_gles.cc.
Referenced by impeller::BlitCopyBufferToTextureCommandGLES::Encode().
| bool impeller::TextureGLES::SetAsFramebufferAttachment | ( | GLenum | target, |
| AttachmentType | attachment_type | ||
| ) | const |
Definition at line 526 of file texture_gles.cc.
References GetGLHandle(), IsValid(), kRenderBuffer, kRenderBufferMultisampled, kTexture, kTextureMultisampled, and impeller::ToAttachmentType().
Referenced by impeller::ConfigureFBO().
|
static |