Protected_ProtectedglwReadonlytextureProtectedcreateCreate native context texture asynchronously
Promise that resolves to the native WebGL texture or null on failure
Free the WebGLTexture from the GPU
Load the texture data from the Texture source and upload it to the GPU
Called when the texture data needs to be loaded and uploaded to a texture
Release the WebGLTexture from the GPU without changing state
Protectedset
A wrapper around a WebGLTexture that handles loading the texture data from a Texture source and uploading it to the GPU as well as freeing the uploaded texture.
Remarks
When accessing the ctxTexture property, the texture will be loaded if it hasn't been already. ctxTexture will always return a valid WebGLTexture and trigger the loading/uploading of the texture's data if it hasn't been loaded yet.