pub fn update_texture_cube(
handle: &Texture,
layer: u16,
side: u8,
mip: u8,
x: u16,
y: u16,
width: u16,
height: u16,
mem: &Memory,
pitch: u16
)
Expand description
-
handle
:
Texture handle.
-
layer
:
Layer in texture array.
-
side
:
Cubemap side [CubeMapFlags::_<X, Y or Z>],
where 0 is +X, 1 is -X, 2 is +Y, 3 is -Y, 4 is +Z, and 5 is -Z.
+----------+
|-z 2|
| ^ +y |
| | | Unfolded cube:
| +---->+x |
+----------+----------+----------+----------+
|+y 1|+y 4|+y 0|+y 5|
| ^ -x | ^ +z | ^ +x | ^ -z |
| | | | | | | | |
| +---->+z | +---->+x | +---->-z | +---->-x |
+----------+----------+----------+----------+
|+z 3|
| ^ -y |
| | |
| +---->+x |
+----------+
-
mip
:
Mip level.
-
x
:
X offset in texture.
-
y
:
Y offset in texture.
-
width
:
Width of texture block.
-
height
:
Height of texture block.
-
mem
:
Texture update data.
-
pitch
:
Pitch of input image (bytes). When _pitch is set to
UINT16_MAX, it will be calculated internally based on _width.