Module veloren_voxygen::ui::graphic
source · Re-exports
pub use renderer::SampleStrat;
pub use renderer::Transform;
Modules
Structs
- CacheKey 🔒Key used to refer to an instance of a graphic that has been uploaded to the GPU.
- 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
- Strategy for how alpha premultiplication will be applied to an image.
- Requirements that a particular graphic has with respect to the atlas allocation or independent texture it will be stored in.
Constants
- Images larger than this are stored in individual textures Fraction of the total graphic cache size
- Multiplied by current window size
Functions
- This creates a texture suitable for sampling from during the UI pass and rendering too during alpha premultiplication upload passes.
- Useful to estimates cost of premultiplying alpha in the provided image via the CPU method.
- Prepare the graphic into the form that will be uploaded to the GPU.