Skip to content

Commit

Permalink
Removed, and documented removal of, texture swizzles per decision at …
Browse files Browse the repository at this point in the history
…recent F2F.
  • Loading branch information
kenrussell committed Feb 10, 2015
1 parent afcacb8 commit 81da911
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions specs/latest/2.0/index.html
Expand Up @@ -27,7 +27,7 @@
<!--end-logo-->

<h1>WebGL 2 Specification</h1>
<h2 class="no-toc">Editor's Draft 26 January 2015</h2>
<h2 class="no-toc">Editor's Draft 06 February 2015</h2>
<dl>
<dt>This version:
<dd>
Expand Down Expand Up @@ -650,10 +650,6 @@ <h3><a name="WEBGLRENDERINGCONTEXT">The WebGL context</a></h3>
const GLenum ANY_SAMPLES_PASSED_CONSERVATIVE = 0x8D6A;
const GLenum SAMPLER_BINDING = 0x8919;
const GLenum RGB10_A2UI = 0x906F;
const GLenum TEXTURE_SWIZZLE_R = 0x8E42;
const GLenum TEXTURE_SWIZZLE_G = 0x8E43;
const GLenum TEXTURE_SWIZZLE_B = 0x8E44;
const GLenum TEXTURE_SWIZZLE_A = 0x8E45;
const GLenum GREEN = 0x1904;
const GLenum BLUE = 0x1905;
const GLenum INT_2_10_10_10_REV = 0x8D9F;
Expand Down Expand Up @@ -1154,10 +1150,6 @@ <h4>Texture objects</h4>
<tr><td>TEXTURE_MAX_LOD</td><td>GLfloat</td></tr>
<tr><td>TEXTURE_MIN_FILTER</td><td>GLenum</td></tr>
<tr><td>TEXTURE_MIN_LOD</td><td>GLfloat</td></tr>
<tr><td>TEXTURE_SWIZZLE_A</td><td>GLenum</td></tr>
<tr><td>TEXTURE_SWIZZLE_B</td><td>GLenum</td></tr>
<tr><td>TEXTURE_SWIZZLE_G</td><td>GLenum</td></tr>
<tr><td>TEXTURE_SWIZZLE_R</td><td>GLenum</td></tr>
<tr><td>TEXTURE_WRAP_R</td><td>GLenum</td></tr>
<tr><td>TEXTURE_WRAP_S</td><td>GLenum</td></tr>
<tr><td>TEXTURE_WRAP_T</td><td>GLenum</td></tr>
Expand Down Expand Up @@ -2198,6 +2190,10 @@ <h4>Primitive Restart is Always Enabled</h4>

<h3>New Features Supported in the WebGL 2 API</h3>

<div class="note editor">
Needs many updates for OpenGL ES 3.0 features
</div>

<ul>
<li>ETC2 and EAC Compressed texture formats <span class="gl-spec">(<a href="http://www.khronos.org/registry/gles/specs/3.0/es_spec_3.0.3.pdf#nameddest=appendix-c">OpenGL ES 3.0.3 Appendix C</a>)</span></li>
<li>Pixel buffer objects <span class="gl-spec">(<a href="http://www.khronos.org/registry/gles/specs/3.0/es_spec_3.0.3.pdf#nameddest=section-3.7.1">OpenGL ES 3.0.3 &sect;3.7.1</a> and <a href="http://www.khronos.org/registry/gles/specs/3.0/es_spec_3.0.3.pdf#nameddest=section-4.3">OpenGL ES 3.0.3 &sect;4.3</a>)</span></li>
Expand Down Expand Up @@ -2479,6 +2475,20 @@ <h3><a name="NO_PRIMITIVE_RESTART_FIXED_INDEX">PRIMITIVE_RESTART_FIXED_INDEX is
behavior is not desired.
</div>

<h3>No texture swizzles</h3>

<p>
OpenGL ES 3.0 introduces new state on texture objects allowing a four-channel swizzle
operation to be specified against the texture. The swizzle is applied to every texture
lookup performed within any shader referencing that texture.
</p>
<p>
On some WebGL implementations, texture swizzles can not be implemented in a performant
manner, meaning that applications relying on this functionality will run significantly more
slowly on those implementations. For this reason, texture swizzles are not supported in
WebGL 2.0.
</p>

<!-- ======================================================================================================= -->

<h2>References</h2>
Expand Down

0 comments on commit 81da911

Please sign in to comment.