mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-17 05:49:30 -07:00
Fixed some major bugs: the WebGPU cache should store loaded images and text, never GPU resource handles; renamed renderer "formulate" to "configure"; WebGPU renderer's configure function needs early returns after each major await, in case there's a new config; the render loops are now locally stored closures; renderers now have start and stop functions; fixed bugs in the REGL and WebGPU mirror passes; WebGPU bloom pass now enforces texture dimensions are greater than zero; the react component now stores the renderer type in a useRef and returns early from renderer init awaits to prevent multiple renderers from instantiating.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
const renderer = new RendererClass();
|
||||
await renderer.ready;
|
||||
document.querySelector("#test-core-bundled").appendChild(renderer.canvas);
|
||||
await renderer.formulate(makeConfig({once: false}));
|
||||
await renderer.configure(makeConfig({once: false}));
|
||||
</script>
|
||||
</details>
|
||||
<details id="test-core-react-bundled">
|
||||
@@ -41,7 +41,7 @@
|
||||
const renderer = new RendererClass();
|
||||
await renderer.ready;
|
||||
document.querySelector("#test-full-bundled").appendChild(renderer.canvas);
|
||||
await renderer.formulate(makeConfig({once: false, version: "twilight"}));
|
||||
await renderer.configure(makeConfig({once: false, version: "twilight"}));
|
||||
</script>
|
||||
</details>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user