Replacing the final copyToTexture call with a tiny render pass, so that the postprocessing passes can be compute shaders working off of storage textures instead.

This commit is contained in:
Rezmason
2021-11-11 08:24:30 -08:00
parent 9813e76ffb
commit 9c861fd50b
5 changed files with 85 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ const loadTexture = async (device, url) => {
return texture;
};
const makePassFBO = (device, width, height, format = "rgba8unorm") =>
const makePassFBO = (device, width, height, format = "bgra8unorm") =>
device.createTexture({
size: [width, height, 1],
format,