Cache key assigned by CoreTextureManager when this texture is stored
in the key cache. null when the texture is not cached.
ReadonlyrenderableReadonlyrenderableMemory used by this texture in bytes
ProtectedtxStaticz$__Checks if the texture can be safely cleaned up. Considers the renderable state, startup grace period, and renderable owners.
Clear all listeners for the given event names by setting their array length to 0, WITHOUT deleting the keys. This keeps the eventListeners object in V8's fast-properties mode and avoids re-allocating the arrays on the next on() call. Use this for objects with a known fixed set of event names (e.g. CoreAnimation, CoreAnimationController).
Only writes arr.length = 0 when the array is non-empty -- skips the write (and the write barrier on old-gen objects) when already empty, which is the common case after unregisterAnimation() has removed all listeners.
Optionaldata: anyGet the texture data for this texture.
The texture data for this texture.
Get the texture source for this texture.
Check whether this emitter has any listeners registered.
Optionalevent: stringOptional event name. When provided, checks only that event. When omitted, checks all events.
true if at least one listener is registered.
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: EventListenerOptionalonAdd/remove an owner to/from the Texture based on its renderability.
OptionalerrorOrDimensions: TextureError | DimensionsStaticmakeGenerates a cache key for the ImageTexture based on the provided props.
The props used to generate the cache key.
The cache key as a string, or false if the key cannot be generated.
StaticresolveResolve the default values for the texture's properties.
The default values for the texture's properties.
Texture consisting of an image loaded from a URL
Remarks
The ImageTexture's ImageTextureProps.src prop defines the image URL to be downloaded.
By default, the texture's alpha values will be premultiplied into its color values which is generally the desired setting before they are sent to the texture's associated Shader. However, in special cases you may want the Shader to receive straight (non-premultiplied) values. In that case you can disable the default behavior by setting the ImageTextureProps.premultiplyAlpha prop to
false.