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.

This commit is contained in:
Rezmason
2021-11-03 21:42:01 -07:00
parent 0b04947425
commit f0ae7731bb
3 changed files with 10 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ const cycleStyles = {
const numVerticesPerQuad = 2 * 3;
export default (context) => {
export default (context, inputs) => {
const { config, adapter, device, canvasContext, timeBuffer } = context;
const assets = [loadTexture(device, config.glyphTexURL), loadShaderModule(device, "shaders/wgsl/rainPass.wgsl")];