-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use VAOs for save+restore of vertexAttribPointer state between differ…
…ent webgl programs. (#6913) BUG * Use VAOs for webgl gpgpu Programs. This prevents issues where vertex attrib layouts don't match between programs (which is possible even with the same vertex shader!), or where someone else overwrites vertexAttribPointer between createProgram and executeProgram. * Support WebGL 1 via OES_vertex_array_object ext. * Fixes. Workaround typechecker instanceof constraint into lambda. Don't save-and-restore VAO since we overwrite it anyway. Bind index buffer to VAOs. * Update gpgpu_context.ts * Update gpgpu_context.ts Co-authored-by: Ping Yu <[email protected]>
- Loading branch information
Showing
4 changed files
with
103 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters