Skip to main content

blit

Function blit 

Source
pub fn blit(texture: &Texture) -> Result<Texture>
Expand description

Deep-copy a packed Texture into independent device storage.

This is the currently admitted whole-surface FnTexture::blit equivalent. Rectangle and scaled blits remain unavailable because the C++ donor also rejects them rather than silently selecting different sampling semantics.

ยงErrors

Returns an error when the device copy cannot be recorded.