mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
LibWeb/WebGL: Implement uniform{1,2,3,4}iv
This commit is contained in:
parent
2e1640a6c5
commit
7b0c067f4d
Notes:
github-actions[bot]
2024-12-05 20:42:50 +00:00
Author: https://github.com/Lubrsi
Commit: 7b0c067f4d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2791
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/shannonbooth
2 changed files with 26 additions and 4 deletions
|
@ -12,6 +12,9 @@ typedef (ImageBitmap or
|
|||
// FIXME: BufferSource should be a Float32Array
|
||||
typedef (BufferSource or sequence<GLfloat>) Float32List;
|
||||
|
||||
// FIXME: BufferSource should be a Int32Array
|
||||
typedef (BufferSource or sequence<GLint>) Int32List;
|
||||
|
||||
// https://registry.khronos.org/webgl/specs/latest/1.0/#5.14
|
||||
interface mixin WebGLRenderingContextOverloads {
|
||||
undefined bufferData(GLenum target, GLsizeiptr size, GLenum usage);
|
||||
|
@ -35,10 +38,10 @@ interface mixin WebGLRenderingContextOverloads {
|
|||
undefined uniform3fv(WebGLUniformLocation? location, Float32List v);
|
||||
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);
|
||||
undefined uniform1iv(WebGLUniformLocation? location, Int32List v);
|
||||
undefined uniform2iv(WebGLUniformLocation? location, Int32List v);
|
||||
undefined uniform3iv(WebGLUniformLocation? location, Int32List v);
|
||||
undefined uniform4iv(WebGLUniformLocation? location, Int32List v);
|
||||
|
||||
// FIXME: Float32Array should be a Float32List
|
||||
undefined uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, Float32List value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue