summaryrefslogtreecommitdiff
path: root/docs/shading.rst
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2022-11-08 12:05:36 +0100
committerMarge Bot <emma+marge@anholt.net>2022-11-09 16:10:55 +0000
commitba78af66c6c484f6e485ea65d7463c0097716097 (patch)
tree483b9dcdb5b0371c2ff856e321c204147149c146 /docs/shading.rst
parentf69560bdcb96ea0fc0e7ec21c1e267afaace5b0c (diff)
downloadmesa-ba78af66c6c484f6e485ea65d7463c0097716097.tar.gz
mesa-ba78af66c6c484f6e485ea65d7463c0097716097.tar.bz2
mesa-ba78af66c6c484f6e485ea65d7463c0097716097.zip
docs: use ext-role for GL / VK extensions
This makes sure that we generate proper links to all of these extensions. Reviewed-by: Eric Engestrom <eric@igalia.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19594>
Diffstat (limited to 'docs/shading.rst')
-rw-r--r--docs/shading.rst11
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/shading.rst b/docs/shading.rst
index 01c8bc99a00..24e1dfbfea0 100644
--- a/docs/shading.rst
+++ b/docs/shading.rst
@@ -71,9 +71,9 @@ language.
Several GLSL extensions are also supported:
-- GL_ARB_draw_buffers
-- GL_ARB_fragment_coord_conventions
-- GL_ARB_shader_bit_encoding
+- :ext:`GL_ARB_draw_buffers`
+- :ext:`GL_ARB_fragment_coord_conventions`
+- :ext:`GL_ARB_shader_bit_encoding`
Unsupported Features
--------------------
@@ -95,7 +95,8 @@ Implementation Notes
--------------------
- Shading language programs are compiled into low-level programs very
- similar to those of GL_ARB_vertex/fragment_program.
+ similar to those of :ext:`GL_ARB_vertex_program` /
+ :ext:`GL_ARB_fragment_program`.
- All vector types (vec2, vec3, vec4, bvec2, etc) currently occupy full
float[4] registers.
- Float constants and variables are packed so that up to four floats
@@ -142,7 +143,7 @@ After building Mesa, the compiler can be found at
src/compiler/glsl/glsl_compiler
Here's an example of using the compiler to compile a vertex shader and
-emit GL_ARB_vertex_program-style instructions:
+emit :ext:`GL_ARB_vertex_program`-style instructions:
.. code-block:: console