pub struct Atlas { /* private fields */ }

Implementations

Panics
  • Panics if provided queue doesn’t support graphics.
  • Panics if provided format doesn’t support:
    • Being used in a sampled image
    • Being used in a storage image
    • Being used as a blit destiation
    • Being used as transfer source or destination.
  • Panics if provided max_alloc_size is greater than supported max_image_dimension2_d

Obtain the current image views for the Atlas images. These should be used direclty when drawing and dropped afterwards. They should proably shouldn’t be stored. Keeping these views alive will result in the Atlas consuming more resources or even preventing it from updating at all in a bad case.

General purpose empty image that can be used in descritors where an image is required, but where it won’t be used.

An unnormalized, linear filter, clamp to transparent black border vulkano::Sampler primary used for sampling atlas images. May be useful outside of Basalt.

An unnormalized, nearest filter, clamp to transparent black border vulkano::Sampler primary used for sampling atlas images. May be useful outside of Basalt.

Obtain coords given a cache id. If doing this in bulk there will be a considerable performance improvement when using batch_cache_coords().

Obtain coords for a set of cache ids. This method will be a considerable improvment for obtaining coords over cache_coords where this is done in bulk.

Load an image from the provided Image.

Load an image from bytes. This uses the image crate.

For raw data use Image::new() and load_image.

Load an image from a path. This reads the file and passes it to Image::load_image_from_bytes().

Load an image from a url. This uses curl to fetch the data from the url and pass it to load_image_from_bytes().

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.