| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7 | 5 // https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7 |
| 6 | 6 |
| 7 typedef long long GLint64; | 7 typedef long long GLint64; |
| 8 typedef unsigned long long GLuint64; | 8 typedef unsigned long long GLuint64; |
| 9 | 9 |
| 10 [ | 10 [ |
| (...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 void vertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei str
ide, GLintptr offset); | 458 void vertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei str
ide, GLintptr offset); |
| 459 | 459 |
| 460 /* Writing to the drawing buffer */ | 460 /* Writing to the drawing buffer */ |
| 461 void vertexAttribDivisor(GLuint index, GLuint divisor); | 461 void vertexAttribDivisor(GLuint index, GLuint divisor); |
| 462 void drawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei in
stanceCount); | 462 void drawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei in
stanceCount); |
| 463 void drawElementsInstanced(GLenum mode, GLsizei count, GLenum type, GLintptr
offset, GLsizei instanceCount); | 463 void drawElementsInstanced(GLenum mode, GLsizei count, GLenum type, GLintptr
offset, GLsizei instanceCount); |
| 464 void drawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count,
GLenum type, GLintptr offset); | 464 void drawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count,
GLenum type, GLintptr offset); |
| 465 | 465 |
| 466 /* Multiple Render Targets */ | 466 /* Multiple Render Targets */ |
| 467 void drawBuffers(sequence<GLenum> buffers); | 467 void drawBuffers(sequence<GLenum> buffers); |
| 468 void clearBufferiv(GLenum buffer, GLint drawbuffer, Int32Array value); | 468 void clearBufferiv(GLenum buffer, GLint drawbuffer, Int32Array value, option
al GLuint srcOffset = 0); |
| 469 void clearBufferiv(GLenum buffer, GLint drawbuffer, sequence<GLint> value); | 469 void clearBufferiv(GLenum buffer, GLint drawbuffer, sequence<GLint> value, o
ptional GLuint srcOffset = 0); |
| 470 void clearBufferuiv(GLenum buffer, GLint drawbuffer, Uint32Array value); | 470 void clearBufferuiv(GLenum buffer, GLint drawbuffer, Uint32Array value, opti
onal GLuint srcOffset = 0); |
| 471 void clearBufferuiv(GLenum buffer, GLint drawbuffer, sequence<GLuint> value)
; | 471 void clearBufferuiv(GLenum buffer, GLint drawbuffer, sequence<GLuint> value,
optional GLuint srcOffset = 0); |
| 472 void clearBufferfv(GLenum buffer, GLint drawbuffer, Float32Array value); | 472 void clearBufferfv(GLenum buffer, GLint drawbuffer, Float32Array value, opti
onal GLuint srcOffset = 0); |
| 473 void clearBufferfv(GLenum buffer, GLint drawbuffer, sequence<GLfloat> value)
; | 473 void clearBufferfv(GLenum buffer, GLint drawbuffer, sequence<GLfloat> value,
optional GLuint srcOffset = 0); |
| 474 void clearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint ste
ncil); | 474 void clearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint ste
ncil); |
| 475 | 475 |
| 476 /* Query Objects */ | 476 /* Query Objects */ |
| 477 WebGLQuery? createQuery(); | 477 WebGLQuery? createQuery(); |
| 478 void deleteQuery(WebGLQuery? query); | 478 void deleteQuery(WebGLQuery? query); |
| 479 GLboolean isQuery(WebGLQuery? query); | 479 GLboolean isQuery(WebGLQuery? query); |
| 480 void beginQuery(GLenum target, WebGLQuery query); | 480 void beginQuery(GLenum target, WebGLQuery query); |
| 481 void endQuery(GLenum target); | 481 void endQuery(GLenum target); |
| 482 [CallWith=ScriptState] any getQuery(GLenum target, GLenum pname); | 482 [CallWith=ScriptState] any getQuery(GLenum target, GLenum pname); |
| 483 [CallWith=ScriptState] any getQueryParameter(WebGLQuery query, GLenum pname)
; | 483 [CallWith=ScriptState] any getQueryParameter(WebGLQuery query, GLenum pname)
; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 WebGLVertexArrayObject? createVertexArray(); | 527 WebGLVertexArrayObject? createVertexArray(); |
| 528 void deleteVertexArray(WebGLVertexArrayObject? vertexArray); | 528 void deleteVertexArray(WebGLVertexArrayObject? vertexArray); |
| 529 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); | 529 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); |
| 530 void bindVertexArray(WebGLVertexArrayObject? vertexArray); | 530 void bindVertexArray(WebGLVertexArrayObject? vertexArray); |
| 531 | 531 |
| 532 /* Reading */ | 532 /* Reading */ |
| 533 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, ArrayBufferView dstData, GLintptr offset); | 533 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, ArrayBufferView dstData, GLintptr offset); |
| 534 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, GLintptr offset); | 534 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, GLintptr offset); |
| 535 }; | 535 }; |
| 536 WebGL2RenderingContextBase implements WebGLRenderingContextBase; | 536 WebGL2RenderingContextBase implements WebGLRenderingContextBase; |
| OLD | NEW |