docs/gallium: use table instead of list
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 19 Oct 2022 12:18:49 +0000 (14:18 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 3 Nov 2022 07:40:35 +0000 (07:40 +0000)
This makes this a bit easer to read, as the equations line up properly.

Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19460>

docs/gallium/cso/blend.rst

index 42e333d..adb995e 100644 (file)
@@ -34,22 +34,26 @@ For a source component `s` and destination component `d`, the logical
 operations are defined as taking the bits of each channel of each component,
 and performing one of the following operations per-channel:
 
-* ``CLEAR``: 0
-* ``NOR``: :math:`\lnot(s \lor d)`
-* ``AND_INVERTED``: :math:`\lnot s \land d`
-* ``COPY_INVERTED``: :math:`\lnot s`
-* ``AND_REVERSE``: :math:`s \land \lnot d`
-* ``INVERT``: :math:`\lnot d`
-* ``XOR``: :math:`s \oplus d`
-* ``NAND``: :math:`\lnot(s \land d)`
-* ``AND``: :math:`s \land d`
-* ``EQUIV``: :math:`\lnot(s \oplus d)`
-* ``NOOP``: :math:`d`
-* ``OR_INVERTED``: :math:`\lnot s \lor d`
-* ``COPY``: :math:`s`
-* ``OR_REVERSE``: :math:`s \lor \lnot d`
-* ``OR``: :math:`s \lor d`
-* ``SET``: 1
+================== =========================
+Operation          Equation
+================== =========================
+``CLEAR``          0
+``NOR``            :math:`\lnot(s \lor d)`
+``AND_INVERTED``   :math:`\lnot s \land d`
+``COPY_INVERTED``  :math:`\lnot s`
+``AND_REVERSE``    :math:`s \land \lnot d`
+``INVERT``         :math:`\lnot d`
+``XOR``            :math:`s \oplus d`
+``NAND``           :math:`\lnot(s \land d)`
+``AND``            :math:`s \land d`
+``EQUIV``          :math:`\lnot(s \oplus d)`
+``NOOP``           :math:`d`
+``OR_INVERTED``    :math:`\lnot s \lor d`
+``COPY``           :math:`s`
+``OR_REVERSE``     :math:`s \lor \lnot d`
+``OR``             :math:`s \lor d`
+``SET``            1
+================== =========================
 
 .. note::
    The logical operation names and definitions match those of the OpenGL API,