download_bytes_with_planes
Description:
[ Version ( since = "4.20" ) ]
public Bytes download_bytes_with_planes (out size_t[] out_offsets, out size_t[] out_strides)
public Bytes download_bytes_with_planes (out size_t[] out_offsets, out size_t[] out_strides)
Downloads the given texture pixels into a `GBytes`.
The offsets and strides of the resulting buffer will be stored in the respective values.
If the format does have less than 4 planes, the remaining offsets and strides will be set to `0`.
Parameters:
this |
the downloader |
out_offsets |
The offsets of the resulting data planes in bytes |
out_strides |
The stride of the resulting data planes in bytes |
Returns:
The downloaded pixels |