WebGL
Khronos
 

WebGL WEBGL_subarray_uploads Extension Proposed Specification

DO NOT IMPLEMENT!!!

Name

WEBGL_subarray_uploads

Contact

WebGL working group (public_webgl 'at' khronos.org)

Contributors

Jeff Gilbert (jgilbert 'at' mozilla.com)

Version

Last modified date: June 07, 2016
Revision: 1

Number

WebGL extension #k

Dependencies

Written against the WebGL API 1.0 specification.

Overview

When this extension is enabled:

IDL

[NoInterfaceObject]
interface WEBGL_subarray_uploads {
    void bufferSubData(GLenum target, GLsizeiptr bufferOffset, GLsizeiptr subarrayOffset,
                       GLsizeiptr subarraySize, (ArrayBuffer or SharedArrayBuffer) data);

    void compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
                                 GLsizei width, GLsizei height, GLenum sizedFormat,
                                 GLsizeiptr subarrayOffset, GLsizeiptr subarraySize,
                                 (ArrayBuffer or SharedArrayBuffer) data);

    void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
                       GLsizei width, GLsizei height, GLenum format, GLenum type,
                       GLsizeiptr subarrayOffset, GLsizeiptr subarraySize,
                       (ArrayBuffer or SharedArrayBuffer) data);
};
  

New Functions

void bufferSubData(GLenum target, GLsizeiptr bufferOffset, GLsizeiptr subarrayOffset, GLsizeiptr subarraySize, ArrayBuffer or SharedArrayBuffer data)
Upload data from a subarray of an ArrayBuffer or SharedArrayBuffer.
void compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum sizedFormat, GLsizeiptr subarrayOffset, GLsizeiptr subarraySize, ArrayBuffer or SharedArrayBuffer data)
Upload data from a subarray of an ArrayBuffer or SharedArrayBuffer.
void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizeiptr subarrayOffset, GLsizeiptr subarraySize, ArrayBuffer or SharedArrayBuffer data)
Upload data from a subarray of an ArrayBuffer or SharedArrayBuffer.

Revision History

Revision 1, 2016/06/07