LibWeb/WebGL2: Implement bufferData with offset and length

This commit is contained in:
Luke Wilde 2024-12-16 19:22:41 +00:00 committed by Alexander Kalenik
commit 18ea91715b
Notes: github-actions[bot] 2025-01-08 15:01:00 +00:00
4 changed files with 45 additions and 1 deletions

View file

@ -10,7 +10,7 @@ interface mixin WebGL2RenderingContextOverloads {
undefined bufferData(GLenum target, BufferSource? srcData, GLenum usage);
undefined bufferSubData(GLenum target, GLintptr dstByteOffset, BufferSource srcData);
// WebGL2:
[FIXME] undefined bufferData(GLenum target, [AllowShared] ArrayBufferView srcData, GLenum usage, unsigned long long srcOffset, optional GLuint length = 0);
undefined bufferData(GLenum target, [AllowShared] ArrayBufferView srcData, GLenum usage, unsigned long long srcOffset, optional GLuint length = 0);
[FIXME] undefined bufferSubData(GLenum target, GLintptr dstByteOffset, [AllowShared] ArrayBufferView srcData, unsigned long long srcOffset, optional GLuint length = 0);
// WebGL1 legacy entrypoints: