AbstractReadonlyrenderableReadonlyrenderableMemory used by this texture in bytes
ProtectedtxChecks if the texture can be safely cleaned up. Considers the renderable state, startup grace period, and renderable owners.
Optionaldata: anyGet the texture data for this texture.
The texture data for this texture.
AbstractgetGet the texture source for this texture.
Checks if the texture is within the startup grace period. During this period, textures are protected from cleanup to prevent race conditions during app initialization.
Load the core context texture for this Texture. The ctxTexture is created by the renderer and lives on the GPU.
Optionallistener: (target: any, data: any) => voidOptionalonAdd/remove an owner to/from the Texture based on its renderability.
OptionalerrorOrDimensions: TextureError | DimensionsStaticmakeMake a cache key for this texture.
A cache key for this texture or false if the texture type does not
support caching.
Staticresolve
Represents a source of texture data for a CoreContextTexture.
Remarks
Texture sources are used to populate a CoreContextTexture when that texture is loaded. Texture data retrieved by the CoreContextTexture by the
getTextureDatamethod. It's the responsibility of the concereteTexturesubclass to implement this method appropriately.