summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-12-15 18:30:40 -0700
committerBrian Paul <brianp@vmware.com>2009-01-06 09:14:39 -0700
commit2ced2647fb6787170545205eb01afe167c6604ea (patch)
tree51879b8b4c22b92ff17e4e0c2d9b2835ee7bac93 /docs
parentc18860ad1cd96674a2ff72e3fd6185d7356e9fff (diff)
mesa: updated GLSL docs
(cherry picked from commit c4341fe80acf75bf5417ffeb85fe6902218b752a)
Diffstat (limited to 'docs')
-rw-r--r--docs/shading.html34
1 files changed, 27 insertions, 7 deletions
diff --git a/docs/shading.html b/docs/shading.html
index 0e1a5e1a7b..aaffe9635d 100644
--- a/docs/shading.html
+++ b/docs/shading.html
@@ -15,13 +15,14 @@ OpenGL Shading Language</a>.
</p>
<p>
-Last updated on 28 March 2007.
+Last updated on 15 December 2008.
</p>
<p>
Contents
</p>
<ul>
+<li><a href="#120">GLSL 1.20 support</a>
<li><a href="#unsup">Unsupported Features</a>
<li><a href="#notes">Implementation Notes</a>
<li><a href="#hints">Programming Hints</a>
@@ -31,6 +32,29 @@ Contents
</ul>
+
+<a name="120">
+<h2>GLSL 1.20 support</h2>
+
+<p>
+GLSL version 1.20 is supported in Mesa 7.3.
+Among the features/differences of GLSL 1.20 are:
+<ul>
+<li><code>mat2x3, mat2x4</code>, etc. types and functions
+<li><code>transpose(), outerProduct(), matrixCompMult()</code> functions
+(but untested)
+<li>precision qualifiers (lowp, mediump, highp)
+<li><code>invariant</code> qualifier
+<li><code>array.length()</code> method
+<li><code>float[5] a;</code> array syntax
+<li><code>centroid</code> qualifier
+<li>unsized array constructors
+<li>initializers for uniforms
+<li>const initializers calling built-in functions
+</ul>
+
+
+
<a name="unsup">
<h2>Unsupported Features</h2>
@@ -40,12 +64,8 @@ in Mesa:
</p>
<ul>
-<li>Dereferencing arrays with non-constant indexes
-<li>Comparison of user-defined structs
<li>Linking of multiple shaders is not supported
<li>gl_ClipVertex
-<li>The derivative functions such as dFdx() are not implemented
-<li>The inverse trig functions asin(), acos(), and atan() are not implemented
<li>The gl_Color and gl_SecondaryColor varying vars are interpolated
without perspective correction
</ul>
@@ -293,11 +313,11 @@ Extra NOP instructions will also be inserted.
<h2>Compiler Validation</h2>
<p>
-A new <a href="http://glean.sf.net" target="_parent">Glean</a> test has
+A <a href="http://glean.sf.net" target="_parent">Glean</a> test has
been create to exercise the GLSL compiler.
</p>
<p>
-The <em>glsl1</em> test runs over 150 sub-tests to check that the language
+The <em>glsl1</em> test runs over 170 sub-tests to check that the language
features and built-in functions work properly.
This test should be run frequently while working on the compiler to catch
regressions.