docs: document more MESA_GLSL env var options
This commit is contained in:
@@ -28,6 +28,7 @@ Setting this variable automatically sets the MESA_TEX_PROG variable as well.
|
|||||||
<li>MESA_EXTENSION_OVERRIDE - can be used to enable/disable extensions.
|
<li>MESA_EXTENSION_OVERRIDE - can be used to enable/disable extensions.
|
||||||
A value such as "GL_EXT_foo -GL_EXT_bar" will enable the GL_EXT_foo extension
|
A value such as "GL_EXT_foo -GL_EXT_bar" will enable the GL_EXT_foo extension
|
||||||
and disable the GL_EXT_bar extension.
|
and disable the GL_EXT_bar extension.
|
||||||
|
<li>MESA_GLSL - <a href="shading.html#envvars">shading language options</a>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
@@ -39,7 +39,8 @@ Contents
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
The <b>MESA_GLSL</b> environment variable can be set to a comma-separated
|
The <b>MESA_GLSL</b> environment variable can be set to a comma-separated
|
||||||
list of keywords to control some aspects of the GLSL compiler:
|
list of keywords to control some aspects of the GLSL compiler and shader
|
||||||
|
execution. These are generally used for debugging.
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>dump - print GLSL shader code to stdout at link time
|
<li>dump - print GLSL shader code to stdout at link time
|
||||||
@@ -49,6 +50,11 @@ list of keywords to control some aspects of the GLSL compiler:
|
|||||||
<li>nopt - disable compiler optimizations
|
<li>nopt - disable compiler optimizations
|
||||||
<li>opt - force compiler optimizations
|
<li>opt - force compiler optimizations
|
||||||
<li>uniform - print message to stdout when glUniform is called
|
<li>uniform - print message to stdout when glUniform is called
|
||||||
|
<li>nopvert - force vertex shaders to be a simple shader that just transforms
|
||||||
|
the vertex position with ftransform() and passes through the color and
|
||||||
|
texcoord[0] attributes.
|
||||||
|
<li>nopfrag - force fragment shader to be a simple shader that passes
|
||||||
|
through the color attribute.
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
Example: export MESA_GLSL=dump,nopt
|
Example: export MESA_GLSL=dump,nopt
|
||||||
|
Reference in New Issue
Block a user