-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(webgl): Add WEBGL1 extensions to forced WebGL2 contexts #2092
Conversation
prototype.getContext = prototype.originalGetContext; | ||
prototype.originalGetContext = undefined; | ||
return; | ||
enforceWebGL2(enforce: boolean = true, adapters: Adapter[] = []): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does a user register an adapter? Or are the necessary adapters already registered by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9.1 will update registerDevices -> registerAdapters
luma.registerAdapters(adapters?: (typeof Device)[]): void; | ||
luma.registerAdapters(adapters?: Adapter[]): void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the difference between a Device class and an Adapter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- A Device is a wrapper around a WebGL context or GPUDevice that lets you create resources and query limits and features.
- An adapter is a factory that lets you create Device's for a specific backend API.
For #
Background
Change List