-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Window rendering in Javascript using WebGPU (#1027)
* Implement `runWindow` for JS * Implement support functions * Implement js bindings * performance is lowercase in JS for some reason, breaking past conventions * Wait for `document.body` to exist * Fix typo in event name * Fix workgroup size mangling hack * Inline the buffer creation to make sure the same device instance is used to create them as the one associated with the canvas * Fix typo on one buffer creation call * Make the canvas actually use the real width and height, and resize appropriately * This doesn't seem right, but let's see what it does * Revert "This doesn't seem right, but let's see what it does" This reverts commit ff048e0. * Perhaps this is the source of the rendering glitch * After reviewing the Rust code, I think this is the source of the error * It shouldn't be printing 'bye' in the console
- Loading branch information
Showing
2 changed files
with
280 additions
and
2 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