-
Notifications
You must be signed in to change notification settings - Fork 670
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proposal: EXT_conservative_depth (#3549)
- Loading branch information
1 parent
1d1fa41
commit f9e3569
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<proposal href="proposals/EXT_conservative_depth/"> | ||
<name>EXT_conservative_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>Members of the WebGL working group</contributor> | ||
</contributors> | ||
|
||
<number>NN</number> | ||
|
||
<depends> | ||
<api version="2.0"/> | ||
</depends> | ||
|
||
<overview> | ||
<mirrors href="https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_conservative_depth.txt" | ||
name="EXT_conservative_depth"> | ||
<addendum> | ||
The <code>depth_unchanged</code> layout qualifier is not supported. | ||
</addendum> | ||
<addendum> | ||
If the final value of <code>gl_FragDepth</code> is inconsistent with its layout qualifier, | ||
implementations may enforce consistency by clamping it to the value of <code>gl_FragCoord.z</code>. | ||
</addendum> | ||
</mirrors> | ||
<features> | ||
<glsl extname="GL_EXT_conservative_depth"> | ||
<stage type="fragment"/> | ||
<feature> | ||
The <code>gl_FragDepth</code> built-in output variable may be redeclared with a depth layout qualifier. | ||
</feature> | ||
</glsl> | ||
</features> | ||
</overview> | ||
|
||
<idl xml:space="preserve"> | ||
[Exposed=(Window,Worker), LegacyNoInterfaceObject] | ||
interface EXT_conservative_depth { | ||
}; | ||
</idl> | ||
|
||
<samplecode xml:space="preserve"> | ||
<pre> | ||
#ifdef GL_EXT_conservative_depth | ||
#extension GL_EXT_conservative_depth : enable | ||
layout (depth_greater) out float gl_FragDepth; | ||
#endif | ||
|
||
void main() { | ||
// Assign to gl_FragDepth as usual | ||
} | ||
</pre> | ||
</samplecode> | ||
|
||
<history> | ||
<revision date="2023/06/01"> | ||
<change>Initial Draft.</change> | ||
</revision> | ||
</history> | ||
</proposal> |