Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / webgl / src / extensions / WEBGL_depth_texture / extension.xml
index 232ad19..165be19 100644 (file)
           constraints are violated.
         </p>
       </feature>
+      <feature>
+        <p>
+          As per the OpenGL ES spec, there is no guarantee that the OpenGL ES implementation
+          will use the texture type to determine how to store the depth texture internally.
+          It may choose to downsample the 32-bit depth values to 16-bit or even 24-bit.
+          When a depth or depth/stencil texture is attached to a framebuffer object, calls to getParameter
+          with the DEPTH_BITS and STENCIL_BITS enums return the following:
+          <table>
+            <tr>
+              <th>Texture Type</th>
+              <th>DEPTH_BITS (GLint)</th>
+              <th>STENCIL_BITS (GLint)</th>
+            </tr>
+            <tr>
+              <td>UNSIGNED_SHORT</td>
+              <td>>= 16</td>
+              <td>0</td>
+            </tr>
+            <tr>
+              <td>UNSIGNED_INT</td>
+              <td>>= 16</td>
+              <td>0</td>
+            </tr>
+            <tr>
+              <td>UNSIGNED_INT_24_8_WEBGL</td>
+              <td>>= 24</td>
+              <td>>= 8</td>
+            </tr>
+          </table>
+        </p>
+      </feature>
     </features>
   </overview>
   <idl xml:space="preserve">
+[NoInterfaceObject]
 interface WEBGL_depth_texture {
   const GLenum UNSIGNED_INT_24_8_WEBGL = 0x84FA;
 };
@@ -225,5 +257,8 @@ interface WEBGL_depth_texture {
     <revision date="2013/05/15">
       <change>Ratified by Khronos Board of Promoters.</change>
     </revision>
+    <revision date="2014/07/15">
+      <change>Added NoInterfaceObject extended attribute.</change>
+    </revision>
   </history>
 </ratified>