Re-exportsยง
pub use renderer::SampleStrat;
pub use renderer::Transform;
Modulesยง
Structsยง
- Cache
Key ๐ - Key used to refer to an instance of a graphic that has been uploaded to the GPU.
- Graphic
Cache - Id
- Premultiply
Lookup Table - TexId
- Texture
Parameters ๐ - These solely determine how a place in an atlas will be found or how a texture will be created to place the image for a graphic.
Enumsยง
- Cached
Details ๐ - Graphic
- Premultiply
Strategy ๐ - Strategy for how alpha premultiplication will be applied to an image.
- Rotation
- Texture
Requirements ๐ - Requirements that a particular graphic has with respect to the atlas allocation or independent texture it will be stored in.
Constantsยง
- ATLAS_
CUTOFF_ ๐FRAC - Images larger than this are stored in individual textures Fraction of the total graphic cache size
- GRAPHIC_
CACHE_ ๐RELATIVE_ SIZE - Multiplied by current window size
Functionsยง
- aabr_
from_ ๐alloc_ rect - atlas_
size ๐ - create_
atlas_ ๐texture - create_
image ๐ - create_
image_ ๐texture - This creates a texture suitable for sampling from during the UI pass and rendering too during alpha premultiplication upload passes.
- fraction_
shortcircuit_ ๐blocks - Useful to estimates cost of premultiplying alpha in the provided image via the CPU method.
- premultiply_
alpha ๐ - prepare_
graphic ๐ - Prepare the graphic into the form that will be uploaded to the GPU.
- upload_
image ๐