diff options
author | Brian Paul <[email protected]> | 2011-01-28 20:25:27 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-01-28 20:25:27 -0700 |
commit | c5fb0518f41644e29c86013bfe459bd351b2d6d9 (patch) | |
tree | 2af06d500ad4c43b49cebb59ca6706c7ccea7e27 /src/gallium/docs | |
parent | f9a36a496f874dd3ab20c0f2439a461f4b25dece (diff) |
gallium/docs: add info about transfer boxes and array textures
Diffstat (limited to 'src/gallium/docs')
-rw-r--r-- | src/gallium/docs/source/context.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst index f0d3b84783d..cdd84bf99cd 100644 --- a/src/gallium/docs/source/context.rst +++ b/src/gallium/docs/source/context.rst @@ -354,6 +354,22 @@ Any pointers into the map should be considered invalid and discarded. Basically get_transfer, transfer_map, data write, transfer_unmap, and transfer_destroy all in one. + +The box parameter to some of these functions defines a 1D, 2D or 3D +region of pixels. This is self-explanatory for 1D, 2D and 3D texture +targets. + +For PIPE_TEXTURE_1D_ARRAY, the box::y and box::height fields refer to the +array dimension of the texture. + +For PIPE_TEXTURE_2D_ARRAY, the box::z and box::depth fields refer to the +array dimension of the texture. + +For PIPE_TEXTURE_CUBE, the box:z and box::depth fields refer to the +faces of the cube map (z + depth <= 6). + + + .. _transfer_flush_region: transfer_flush_region |