#include <texture_gles.h>
Public Types | |
| enum | Type { Type::kTexture, Type::kRenderBuffer, Type::kRenderBufferMultisampled } |
| enum | IsWrapped { IsWrapped::kWrapped } |
| enum | AttachmentPoint { AttachmentPoint::kColor0, AttachmentPoint::kDepth, AttachmentPoint::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, GLuint fbo, AttachmentPoint point) 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 43 of file texture_gles.h.
|
strong |
|
strong |
| Enumerator | |
|---|---|
| kTexture | |
| kRenderBuffer | |
| kRenderBufferMultisampled | |
Definition at line 18 of file texture_gles.h.
| impeller::TextureGLES::TextureGLES | ( | ReactorGLES::Ref | reactor, |
| TextureDescriptor | desc | ||
| ) |
Definition at line 42 of file texture_gles.cc.
| impeller::TextureGLES::TextureGLES | ( | ReactorGLES::Ref | reactor, |
| TextureDescriptor | desc, | ||
| IsWrapped | wrapped | ||
| ) |
Definition at line 45 of file texture_gles.cc.
|
override |
Definition at line 76 of file texture_gles.cc.
| bool impeller::TextureGLES::Bind | ( | ) | const |
Definition at line 434 of file texture_gles.cc.
References GetGLHandle(), impeller::Texture::GetTextureDescriptor(), kRenderBuffer, kRenderBufferMultisampled, kTexture, impeller::ToTextureTarget(), and VALIDATION_LOG.
Referenced by GenerateMipmap().
| bool impeller::TextureGLES::GenerateMipmap | ( | ) |
Definition at line 459 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 427 of file texture_gles.cc.
Referenced by Bind(), impeller::ConfigureFBO(), GenerateMipmap(), and SetAsFramebufferAttachment().
| TextureGLES::Type impeller::TextureGLES::GetType | ( | ) | const |
Definition at line 493 of file texture_gles.cc.
|
inline |
Definition at line 54 of file texture_gles.h.
| bool impeller::TextureGLES::SetAsFramebufferAttachment | ( | GLenum | target, |
| GLuint | fbo, | ||
| AttachmentPoint | point | ||
| ) | const |
Definition at line 508 of file texture_gles.cc.
References GetGLHandle(), impeller::Texture::GetTextureDescriptor(), impeller::kCount4, kRenderBuffer, kRenderBufferMultisampled, kTexture, and impeller::ToAttachmentPoint().
Referenced by impeller::ConfigureFBO().
|
friend |
Definition at line 57 of file texture_gles.h.