Function vulkano_framing::upload_array
[−]
[src]
pub fn upload_array<W, T, F>(
queue: Arc<Queue>,
format: F,
images: &[T]
) -> Result<(Arc<ImmutableImage<F>>, CommandBufferExecFuture<NowFuture, AutoCommandBuffer>), ImageCreationError> where
T: Image,
F: FormatDesc + AcceptsPixels<W> + Send + Sync + 'static,
W: From<T::Pixel> + Clone + Send + Sync + 'static,
Format: AcceptsPixels<W>,
Upload a bunch of frames to the GPU as a texture array.
It is important to ensure that all the images are of the same size, because
otherwise this function will just return an UnsupportedUsage
error.
Panics
Panics if there are no images in the array.