Refactoring the pass and pipeline, so that inputs and size are handed to and returned from the build function (formerly setSize). This is now the earliest place to build bind groups, which makes sense, because it's also the earliest place to create textures that are proportional to the size of the canvas.

This commit is contained in:
Rezmason
2021-11-15 00:30:09 -08:00
parent b0a4acdfdb
commit 1b61e304a5
10 changed files with 142 additions and 144 deletions

View File

@@ -1,8 +1,6 @@
TODO:
WebGPU
Rename setSize to rebuild — it is the function that receives inputs as well as screen size
Create and store the bloom bind groups on resize
Make sure everything is properly commented
Update links in issues
Get rid of end pass once it's possible to copy a bgra8unorm to a canvas texture