Initial commit

This commit is contained in:
ChKendel
2026-01-31 21:50:25 +01:00
commit c65f983229
1088 changed files with 452910 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
class WebGLExtensions {
constructor( backend ) {
this.backend = backend;
this.gl = this.backend.gl;
this.availableExtensions = this.gl.getSupportedExtensions();
}
get( name ) {
return this.gl.getExtension( name );
}
has( name ) {
return this.availableExtensions.includes( name );
}
}
export default WebGLExtensions;