docs/gallium: Document the index buffer format convention
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10990>
This commit is contained in:
parent
a86deb1e72
commit
d058ce7e88
|
@ -51,6 +51,11 @@ Format names with an embedded underscore are subsampled. ``R8G8_B8G8`` is a
|
||||||
single 32-bit block of two pixels, where the R and B values are repeated in
|
single 32-bit block of two pixels, where the R and B values are repeated in
|
||||||
both pixels.
|
both pixels.
|
||||||
|
|
||||||
|
Index buffers do not have a natural format in Gallium structures. For purposes
|
||||||
|
of ``is_format_supported`` queries, the formats ``R8_UINT``, ``R16_UINT``, and
|
||||||
|
``R32_UINT`` are used with ``PIPE_BIND_INDEX_BUFFER`` for 8-bit, 16-bit, and
|
||||||
|
32-bit index buffers respectively.
|
||||||
|
|
||||||
References
|
References
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue