Structs
- Sequence number for frames, as tracked by the device layer.
- IBOId 🔒
- A refcounted depth target, which may be shared by multiple textures across the device.
- WebRender interface to an OpenGL texture.
- A structure defining a particular workflow of texture transfers.
- 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().
- A PBO for uploading texture data, managed by UploadPBOPool.
- 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().
Enums
- Contains the parameters necessary to bind a draw target.
- Contains the parameters necessary to bind a texture-backed read target.
- Describes a required alignment for a stride, which can either be represented in bytes or pixels.
- Describes for which texture formats to use the glTexStorage* family of functions.
- Method of uploading texel data from CPU to GPU.
Constants
Traits
- The interfaces that an application can implement to handle ProgramCache update
- Plain old data that can be used to initialize a texture.
Functions
- Returns the size in bytes of a depth target with the given dimensions.
- Returns whether this GPU belongs to the Mali Bifrost family
- Returns whether this GPU belongs to the Mali Midgard family
- Returns whether this GPU belongs to the Mali Valhall family
- 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.