StructsΒ§
- Sequence number for frames, as tracked by the device layer.
- IBOId π
- Pixel
Buffer π - Program
Cache πEntry - Shared
Depth πTarget 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().
- Upload
Chunk π - UploadPBO π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.
- FBOTarget π
- PBOMapping π
- Program
Source πType - 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.
- TexStorage
Usage πDescribes for which texture formats to use the glTexStorage* family of functions. - Method of uploading texel data from CPU to GPU.
ConstantsΒ§
- DEFAULT_
TEXTURE π - RESERVE_
DEPTH_ πBITS
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.
- get_
shader_ πversion - is_
mali_ πbifrost Returns whether this GPU belongs to the Mali Bifrost family - is_
mali_ πmidgard Returns whether this GPU belongs to the Mali Midgard family - is_
mali_ πvalhall Returns whether this GPU belongs to the Mali Valhall family - parse_
mali_ πversion 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. - supports_
extension π - texels_
to_ πu8_ slice