mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 14:02:20 +00:00
LibWeb/WebGL: Stub missing includes for WebGLRenderingContext
This commit is contained in:
parent
b0fd4aff1a
commit
bb95a48035
Notes:
github-actions[bot]
2024-08-19 07:05:40 +00:00
Author: https://github.com/jamierocks
Commit: bb95a48035
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1098
3 changed files with 40 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
#import <WebGL/WebGLRenderingContextBase.idl>
|
#import <WebGL/WebGLRenderingContextBase.idl>
|
||||||
|
#import <WebGL/WebGLRenderingContextOverloads.idl>
|
||||||
|
|
||||||
// https://registry.khronos.org/webgl/specs/latest/1.0/#5.14
|
// https://registry.khronos.org/webgl/specs/latest/1.0/#5.14
|
||||||
[Exposed=(Window,Worker)]
|
[Exposed=(Window,Worker)]
|
||||||
|
@ -6,3 +7,4 @@ interface WebGLRenderingContext {
|
||||||
};
|
};
|
||||||
|
|
||||||
WebGLRenderingContext includes WebGLRenderingContextBase;
|
WebGLRenderingContext includes WebGLRenderingContextBase;
|
||||||
|
WebGLRenderingContext includes WebGLRenderingContextOverloads;
|
||||||
|
|
|
@ -22,7 +22,14 @@ interface mixin WebGLRenderingContextBase {
|
||||||
|
|
||||||
// FIXME: The type should be (HTMLCanvasElement or OffscreenCanvas).
|
// FIXME: The type should be (HTMLCanvasElement or OffscreenCanvas).
|
||||||
[ImplementedAs=canvas_for_binding] readonly attribute HTMLCanvasElement canvas;
|
[ImplementedAs=canvas_for_binding] readonly attribute HTMLCanvasElement canvas;
|
||||||
|
[FIXME] readonly attribute GLsizei drawingBufferWidth;
|
||||||
|
[FIXME] readonly attribute GLsizei drawingBufferHeight;
|
||||||
|
[FIXME] readonly attribute GLenum drawingBufferFormat;
|
||||||
|
|
||||||
|
[FIXME] attribute PredefinedColorSpace drawingBufferColorSpace;
|
||||||
|
[FIXME] attribute PredefinedColorSpace unpackColorSpace;
|
||||||
|
|
||||||
|
[FIXME] WebGLContextAttributes? getContextAttributes();
|
||||||
boolean isContextLost();
|
boolean isContextLost();
|
||||||
|
|
||||||
sequence<DOMString>? getSupportedExtensions();
|
sequence<DOMString>? getSupportedExtensions();
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
// https://registry.khronos.org/webgl/specs/latest/1.0/#5.14
|
||||||
|
interface mixin WebGLRenderingContextOverloads {
|
||||||
|
[FIXME] undefined bufferData(GLenum target, GLsizeiptr size, GLenum usage);
|
||||||
|
[FIXME] undefined bufferData(GLenum target, AllowSharedBufferSource? data, GLenum usage);
|
||||||
|
[FIXME] undefined bufferSubData(GLenum target, GLintptr offset, AllowSharedBufferSource data);
|
||||||
|
|
||||||
|
[FIXME] undefined compressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, [AllowShared] ArrayBufferView data);
|
||||||
|
[FIXME] undefined compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, [AllowShared] ArrayBufferView data);
|
||||||
|
|
||||||
|
[FIXME] undefined readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, [AllowShared] ArrayBufferView? pixels);
|
||||||
|
|
||||||
|
[FIXME] undefined texImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, [AllowShared] ArrayBufferView? pixels);
|
||||||
|
[FIXME] undefined texImage2D(GLenum target, GLint level, GLint internalformat, GLenum format, GLenum type, TexImageSource source); // May throw DOMException
|
||||||
|
|
||||||
|
[FIXME] undefined texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, [AllowShared] ArrayBufferView? pixels);
|
||||||
|
[FIXME] undefined texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLenum format, GLenum type, TexImageSource source); // May throw DOMException
|
||||||
|
|
||||||
|
[FIXME] undefined uniform1fv(WebGLUniformLocation? location, Float32List v);
|
||||||
|
[FIXME] undefined uniform2fv(WebGLUniformLocation? location, Float32List v);
|
||||||
|
[FIXME] undefined uniform3fv(WebGLUniformLocation? location, Float32List v);
|
||||||
|
[FIXME] undefined uniform4fv(WebGLUniformLocation? location, Float32List v);
|
||||||
|
|
||||||
|
[FIXME] undefined uniform1iv(WebGLUniformLocation? location, Int32List v);
|
||||||
|
[FIXME] undefined uniform2iv(WebGLUniformLocation? location, Int32List v);
|
||||||
|
[FIXME] undefined uniform3iv(WebGLUniformLocation? location, Int32List v);
|
||||||
|
[FIXME] undefined uniform4iv(WebGLUniformLocation? location, Int32List v);
|
||||||
|
|
||||||
|
[FIXME] undefined uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, Float32List value);
|
||||||
|
[FIXME] undefined uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, Float32List value);
|
||||||
|
[FIXME] undefined uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, Float32List value);
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue