-
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: OES_shader_multisample_interpolation (#3552)
- Loading branch information
1 parent
28f93ca
commit a93abc9
Showing
1 changed file
with
73 additions
and
0 deletions.
There are no files selected for viewing
73 changes: 73 additions & 0 deletions
73
extensions/proposals/OES_shader_multisample_interpolation/extension.xml
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,73 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<proposal href="proposals/OES_shader_multisample_interpolation/"> | ||
<name>OES_shader_multisample_interpolation</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/OES/OES_shader_multisample_interpolation.txt" | ||
name="OES_shader_multisample_interpolation"/> | ||
<features> | ||
<glsl extname="OES_shader_multisample_interpolation"> | ||
<feature> | ||
Vertex outputs and fragment inputs may be declared with a <code>sample</code> interpolation qualifier. | ||
</feature> | ||
<function name="interpolateAtCentroid" type="genType"> | ||
<param type="genType" name="interpolant"/> | ||
</function> | ||
<function name="interpolateAtSample" type="genType"> | ||
<param type="genType" name="interpolant"/> | ||
<param type="int" name="id"/> | ||
</function> | ||
<function name="interpolateAtOffset" type="genType"> | ||
<param type="genType" name="interpolant"/> | ||
<param type="vec2" name="offset"/> | ||
</function> | ||
</glsl> | ||
</features> | ||
</overview> | ||
|
||
<idl xml:space="preserve"> | ||
[Exposed=(Window,Worker), LegacyNoInterfaceObject] | ||
interface OES_shader_multisample_interpolation { | ||
const GLenum MIN_FRAGMENT_INTERPOLATION_OFFSET_OES = 0x8E5B; | ||
const GLenum MAX_FRAGMENT_INTERPOLATION_OFFSET_OES = 0x8E5C; | ||
const GLenum FRAGMENT_INTERPOLATION_OFFSET_BITS_OES = 0x8E5D; | ||
}; | ||
</idl> | ||
|
||
<newtok> | ||
<function name="getParameter" type="any"> | ||
<param name="pname" type="GLenum"/> | ||
<p> | ||
New enums are accepted as the <code>pname</code> parameter. | ||
</p> | ||
<p> | ||
The return type of this method depends on the parameter queried: | ||
</p> | ||
<table class="foo"> | ||
<tr><th>pname</th><th>returned type</th></tr> | ||
<tr><td>MIN_FRAGMENT_INTERPOLATION_OFFSET_OES</td><td>GLfloat</td></tr> | ||
<tr><td>MAX_FRAGMENT_INTERPOLATION_OFFSET_OES</td><td>GLfloat</td></tr> | ||
<tr><td>FRAGMENT_INTERPOLATION_OFFSET_BITS_OES</td><td>GLint</td></tr> | ||
</table> | ||
</function> | ||
</newtok> | ||
|
||
<history> | ||
<revision date="2023/06/01"> | ||
<change>Initial Draft.</change> | ||
</revision> | ||
</history> | ||
</proposal> |