Rezmason
|
bd3d0c76d2
|
Fixing the names of shaders in the passes. The loadShader utility function now returns the code and the module, since I'm hoping to parse uniform buffer layouts from the code.
|
2021-11-07 00:41:25 -07:00 |
|
Rezmason
|
89b9f4e363
|
Ported all the post processing regl passes to WebGPU. Fixed the CORS stuff in loadTexture. Renamed createRenderTargetTexture to makePassFBO, to conform with the regl project. Added make1DTexture, which stripePass uses.
|
2021-11-06 05:03:16 -07:00 |
|
Rezmason
|
230847e5b8
|
Added runtime texture targets. A pass now returns its resources in getOutputs(), which subsequent passes access as getInputs().
|
2021-11-05 01:06:39 -07:00 |
|
Rezmason
|
f0ae7731bb
|
The webgpu project's multi-pass pipeline is borrowed from the regl project, but the outputs don't exist yet. Outputs will be tricky, because RTTs are thrown out and recreated when the canvas resizes, which I think means all the bind groups referencing the old texture have to be destroyed and recreated, too.
|
2021-11-03 21:42:01 -07:00 |
|
Rezmason
|
0b04947425
|
Implemented makePass(). Moved rain compute and render stuff into a pass.
|
2021-11-03 21:30:22 -07:00 |
|
Rezmason
|
f8959cd7d9
|
Renaming msdfSampler to linearSampler; adding loadShaderModule utility method; busting the rain render out of its render bundle (which won't be useful long-term).
|
2021-11-03 20:01:59 -07:00 |
|
Rezmason
|
8048c9c690
|
That's funny, you can blob a fetch response and chuck it into createImageBitmap().
|
2021-11-02 23:19:54 -07:00 |
|
Rezmason
|
33437a722d
|
Finding ways to construct WebGPU descriptors more concisely. Moving some functions to webgpu's utils.js.
|
2021-10-30 08:40:42 -07:00 |
|