mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 14:20:11 +01:00
docs/gallium: use table instead of list
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>
This commit is contained in:
parent
c85a05a685
commit
be857778bb
1 changed files with 20 additions and 16 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue