mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibWeb/WebGL: Add support for ANGLEInstancedArrays extension
This is only WebGL 1.0 extension. It's enabled in ANGLE by default. Progress on https://ciechanow.ski/curves-and-surfaces/ that relies on this extension.
This commit is contained in:
parent
99b49a5978
commit
c9105955f6
Notes:
github-actions[bot]
2024-12-20 14:32:52 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: c9105955f6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2990
7 changed files with 108 additions and 1 deletions
15
Libraries/LibWeb/WebGL/ANGLEInstancedArrays.idl
Normal file
15
Libraries/LibWeb/WebGL/ANGLEInstancedArrays.idl
Normal file
|
@ -0,0 +1,15 @@
|
|||
#import <WebGL/Types.idl>
|
||||
|
||||
// https://registry.khronos.org/webgl/extensions/ANGLE_instanced_arrays/
|
||||
// NOTE: Original ANGLE_instanced_arrays name is changed to title case,
|
||||
// so it matches corresponding C++ class name, and does not require
|
||||
// IDL generator to handle snake_case to TitleCase conversion.
|
||||
// Having a different name is totally fine, because LegacyNoInterfaceObject
|
||||
// prevents the name from being exposed to JavaScript.
|
||||
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
|
||||
interface ANGLEInstancedArrays {
|
||||
const GLenum VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE;
|
||||
undefined drawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount);
|
||||
undefined drawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type, GLintptr offset, GLsizei primcount);
|
||||
undefined vertexAttribDivisorANGLE(GLuint index, GLuint divisor);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue