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 🔒