Advanced
A reference to the current renderer
Static
uploadsThe number of uploads to process per frame
Add a textures or graphics resource to the queue
eliminate duplicates before processing
Destroys the plugin, don't use after this.
Upload all the textures and graphics to the GPU (optionally add more resources to the queue first)
Optional
resource: PrepareSourceItem | PrepareSourceItem[]
The prepare system provides renderer-specific plugins for pre-rendering DisplayObjects. This is useful for asynchronously preparing and uploading to the GPU assets, textures, graphics waiting to be displayed.
Do not instantiate this plugin directly. It is available from the
renderer.prepare
property.Example