Skip to main content

Crate kova_native_assets

Crate kova_native_assets 

Source
Expand description

Image and vector assets for Kova Native.

  • ImageData — decoded raster images (PNG, JPEG, WebP), stored as premultiplied RGBA ready for the GPU atlas.
  • SvgData — parsed SVG documents, rasterized on demand at the exact device pixel size they are drawn at (crisp at any scale factor).
  • AssetCache — deduplicates loads by source so the same file is decoded once no matter how many elements display it.

Structs§

AssetCache
Caches decoded assets by source. Thread safe, so decoding can happen on background threads.
ImageData
A decoded raster image (premultiplied RGBA8).
SvgData
A parsed SVG document.

Enums§

AssetSource
Where an asset comes from.