Structs§
- Sequence number for frames, as tracked by the device layer.
- IBOId π
- PixelBuffer π
- ProgramCacheEntry π
- SharedDepthTarget π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().
- UploadChunk π
- 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 π
- ProgramSourceType π
- 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.
- TexStorageUsage π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 π