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.
Optionaldata: anyGet the texture data for this texture.
The texture data for this texture.
Get 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 | 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.