Used to perform a series of texture uploads.
Create using Device::upload_texture(). Perform a series of uploads using either
upload(), or stage() and upload_staged(), then call flush().
Allocates and recycles PBOs used for uploading texture data.
Tries to allocate and recycle PBOs of a fixed size, but will make exceptions when
a larger buffer is required or to work around driver bugs.
A buffer used to manually stage data to be uploaded to a texture.
Created by calling TextureUploader::stage(), the data can then be written to via get_mapping().
Parses the major, release, and patch versions from a GL_VERSION string on
Mali devices. For example, for the version string
βOpenGL ES 3.2 v1.r36p0-01eac0.28ab3a577f105e026887e2b4c93552fbβ this
returns Some((1, 36, 0)). Returns None if the version cannot be parsed.