Function webrender::renderer::upload::copy_into_staging_buffer
source ยท fn copy_into_staging_buffer<'a>(
device: &mut Device,
uploader: &mut TextureUploader<'a>,
staging_texture_pool: &mut UploadTexturePool,
update_rect: DeviceIntRect,
update_stride: Option<i32>,
data: &[u8],
dest_texture_id: CacheTextureId,
texture: &Texture,
batch_upload_buffers: &mut FastHashMap<ImageFormat, (GuillotineAllocator, Vec<BatchUploadBuffer<'a>>)>,
batch_upload_textures: &mut Vec<Texture>,
batch_upload_copies: &mut Vec<BatchUploadCopy>,
stats: &mut UploadStats,
)
Expand description
Copy an item into a batched upload staging buffer.