#include <texture_mtl.h>
Public Member Functions | |
| TextureMTL (TextureDescriptor desc, id< MTLTexture > texture, bool wrapped=false) | |
| ~TextureMTL () override | |
| id< MTLTexture > | GetMTLTexture () const |
| bool | IsWrapped () const |
| bool | GenerateMipmap (id< MTLBlitCommandEncoder > encoder) |
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 |
| virtual Scalar | GetYCoordScale () const |
| bool | NeedsMipmapGeneration () const |
Static Public Member Functions | |
| static std::shared_ptr< TextureMTL > | Wrapper (TextureDescriptor desc, id< MTLTexture > texture, std::function< void()> deletion_proc=nullptr) |
Static Public Member Functions inherited from impeller::BackendCast< TextureMTL, Texture > | |
| static TextureMTL & | Cast (Texture &base) |
| static const TextureMTL & | Cast (const Texture &base) |
| static TextureMTL * | Cast (Texture *base) |
| static const TextureMTL * | 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 15 of file texture_mtl.h.
| impeller::TextureMTL::TextureMTL | ( | TextureDescriptor | desc, |
| id< MTLTexture > | texture, | ||
| bool | wrapped = false |
||
| ) |
Definition at line 19 of file texture_mtl.mm.
References impeller::Texture::GetTextureDescriptor(), impeller::TextureDescriptor::IsValid(), impeller::TextureDescriptor::size, and VALIDATION_LOG.
Referenced by Wrapper().
|
overridedefault |
| bool impeller::TextureMTL::GenerateMipmap | ( | id< MTLBlitCommandEncoder > | encoder | ) |
Definition at line 112 of file texture_mtl.mm.
References impeller::Texture::mipmap_generated_.
Referenced by impeller::BlitGenerateMipmapCommandMTL::Encode().
| id< MTLTexture > impeller::TextureMTL::GetMTLTexture | ( | ) | const |
Definition at line 100 of file texture_mtl.mm.
Referenced by impeller::ConfigureAttachment(), impeller::ConfigureResolveTextureAttachment(), impeller::BlitCopyTextureToTextureCommandMTL::Encode(), impeller::BlitCopyTextureToBufferCommandMTL::Encode(), and impeller::BlitCopyBufferToTextureCommandMTL::Encode().
| bool impeller::TextureMTL::IsWrapped | ( | ) | const |
Definition at line 108 of file texture_mtl.mm.
|
static |
Definition at line 38 of file texture_mtl.mm.
References TextureMTL().
Referenced by impeller::SurfaceMTL::MakeFromTexture(), impeller::WrapperMTL(), and impeller::WrapTextureMTL().