WebGL URI Extension Proposed Specification

DO NOT IMPLEMENT!!!

Name

URI

Contact

Contributors

David Sheets <sheets@ashimaarts.com>

Ian McEwan <ijm@ashimaarts.com>

Version

Last modified date: May 15, 2012
Revision: 2

Number

WebGL extension #

Dependencies

Written against the WebGL API 1.0 specification.

Written against the GLSL ES 2.0 (1.0.17) specification.

Written against IETF RFC 3986.

Overview

This extension defines the relationship between RFC 3986 URIs, the World Wide Web's namespace, and WebGL.

When this extension is enabled:

URI preprocessor identifiers can be matched by the regular expression production rule:
identifier-URI = "<" .*? ":" .*? ">"

The following map should be used to resolve URI extension identifiers to official Khronos WebGL extensions:

URI Khronos WebGL Extension
http://www.khronos.org/registry/webgl/extensions/OES_texture_float/ OES_texture_float
http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/ OES_texture_half_float
http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/ WEBGL_lose_context
http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/ OES_standard_derivatives
http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ OES_vertex_array_object
http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/ WEBGL_debug_renderer_info
http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/ WEBGL_debug_shaders
http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3tc/ WEBGL_compressed_texture_s3tc
http://www.khronos.org/registry/webgl/extensions/OES_depth_texture/ OES_depth_texture
http://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/ OES_element_index_uint
http://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotropic/ EXT_texture_filter_anisotropic

When URI is enabled, absolute URI references can be used in GLSL preprocessor extension directives as extension names.

The same representation should be used in other preprocessor directives such as #ifdef to test for an implementation's support for the URI-identified extension or #pragma to reference shader comment metadata formats.

URI is a preprocessor extension and requires preprocessor integration.

Implementations are not expected or required to use the URI identifying an extension as a locator for a network resource.

IDL

interface URI { };

Revision History

Revision 1, 2012/05/15

Revision 2, 2012/05/15