A view of a buffer which can be used to copy to or from a texture.

Variables

buffer:Buffer

The buffer to be copied to or from.

offset:Int

The offset in bytes from the start of the buffer.

bytesPerRow:Int

The size in bytes of a single row of the texture.

In the future this must be a multiple of 256 bytes, however the requirement is currently unimplemented.

rowsPerImage:Int

The height in texels of the imaginary texture view overlaid on the buffer.

Must be zero for copies where copy_size.depth == 1