docs: use code-block for glsl
Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10281>
This commit is contained in:
parent
54ad6f91c6
commit
63496d25de
|
@ -115,13 +115,13 @@ Programming Hints
|
||||||
- Use the built-in library functions whenever possible. For example,
|
- Use the built-in library functions whenever possible. For example,
|
||||||
instead of writing this:
|
instead of writing this:
|
||||||
|
|
||||||
::
|
.. code-block:: glsl
|
||||||
|
|
||||||
float x = 1.0 / sqrt(y);
|
float x = 1.0 / sqrt(y);
|
||||||
|
|
||||||
Write this:
|
Write this:
|
||||||
|
|
||||||
::
|
.. code-block:: glsl
|
||||||
|
|
||||||
float x = inversesqrt(y);
|
float x = inversesqrt(y);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue