pub fn blit(
id: ViewId,
dst: &Texture,
dst_mip: u8,
dst_x: u16,
dst_y: u16,
dst_z: u16,
src: &Texture,
params: BlitArgs
)
Expand description
id
:
View id.
dst
:
Destination texture handle.
dst_mip
:
Destination texture mip level.
dst_x
:
Destination texture X position.
dst_y
:
Destination texture Y position.
dst_z
:
If texture is 2D this argument should be 0. If destination texture is cube
this argument represents destination texture cube face. For 3D texture this argument
represents destination texture Z position.
src
:
Source texture handle.
src_mip
:
Source texture mip level.
src_x
:
Source texture X position.
src_y
:
Source texture Y position.
src_z
:
If texture is 2D this argument should be 0. If source texture is cube
this argument represents source texture cube face. For 3D texture this argument
represents source texture Z position.
width
:
Width of region.
height
:
Height of region.
depth
:
If texture is 3D this argument represents depth of region, otherwise it’s
unused.