mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
LibWeb/WebGL: Request GL_ANGLE_instanced_arrays extension when required
This commit is contained in:
parent
1156fe483d
commit
58942e1137
Notes:
github-actions[bot]
2025-01-21 20:38:07 +00:00
Author: https://github.com/Lubrsi
Commit: 58942e1137
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3239
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/kalenikaliaksandr
4 changed files with 32 additions and 5 deletions
|
@ -17,7 +17,7 @@ class ANGLEInstancedArrays : public Bindings::PlatformObject {
|
|||
GC_DECLARE_ALLOCATOR(ANGLEInstancedArrays);
|
||||
|
||||
public:
|
||||
static JS::ThrowCompletionOr<GC::Ptr<ANGLEInstancedArrays>> create(JS::Realm&);
|
||||
static JS::ThrowCompletionOr<GC::Ptr<ANGLEInstancedArrays>> create(JS::Realm&, GC::Ref<WebGLRenderingContext>);
|
||||
|
||||
void draw_arrays_instanced_angle(GLenum mode, GLint first, GLsizei count, GLsizei primcount);
|
||||
void draw_elements_instanced_angle(GLenum mode, GLsizei count, GLenum type, GLintptr offset, GLsizei primcount);
|
||||
|
@ -25,9 +25,12 @@ public:
|
|||
|
||||
protected:
|
||||
void initialize(JS::Realm&) override;
|
||||
void visit_edges(Visitor&) override;
|
||||
|
||||
private:
|
||||
ANGLEInstancedArrays(JS::Realm&);
|
||||
ANGLEInstancedArrays(JS::Realm&, GC::Ref<WebGLRenderingContext>);
|
||||
|
||||
GC::Ref<WebGLRenderingContext> m_context;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue