File: extension.xml

package info (click to toggle)
rust-khronos-api 3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 6,704 kB
  • sloc: xml: 114,180; makefile: 4
file content (70 lines) | stat: -rw-r--r-- 1,923 bytes parent folder | download | duplicates (46)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="UTF-8"?>
<ratified href="EXT_frag_depth/">
  <name>EXT_frag_depth</name>
  <contact> <a href="https://www.khronos.org/webgl/public-mailing-list/">WebGL
  working group</a> (public_webgl 'at' khronos.org) </contact>

  <contributors>
    <contributor>Florian Boesch (pyalot 'at' gmail.com)</contributor>
    <contributor>Members of the WebGL working group</contributor>
  </contributors>

  <number>16</number>

  <depends>
    <api version="1.0"/>
    <core version="2.0">
      <glsl version="300 es"/>
    </core>
  </depends>

  <overview>
    <mirrors href="http://www.khronos.org/registry/gles/extensions/EXT/EXT_frag_depth.txt"
             name="EXT_frag_depth">
    </mirrors>

    <features>
      <feature>
            Adds the ability to set the depth value of a fragment from
            within the fragment shader with the built-in output variable gl_FragDepthEXT.
      </feature>
      <glsl extname="GL_EXT_frag_depth">
        <stage type="fragment"/>
        <output name="gl_FragDepthEXT" type="float" />
      </glsl>
    </features>
  </overview>
  
  <idl xml:space="preserve">
    [NoInterfaceObject]
    interface EXT_frag_depth {
    };
  </idl>

  <samplecode xml:space="preserve">
    <pre>
    void main(){
        gl_FragColor = vec4(1.0, 0.0, 1.0, 1.0);
        gl_FragDepthEXT = 0.5;
    }
    </pre>
  </samplecode>

  <history>
    <revision date="2012/11/22">
      <change>Initial revision.</change>
    </revision>
    <revision date="2012/12/17">
      <change>Moved to draft.</change>
    </revision>
    <revision date="2014/05/13">
      <change>Moved to community approved.</change>
    </revision>
    <revision date="2014/07/15">
      <change>Added NoInterfaceObject extended attribute.</change>
    </revision>
    <revision date="2015/05/29">
      <change>Ratified by Khronos Board of Promoters.</change>
    </revision>
  </history>
</ratified>