mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-17 13:59:30 -07:00
WebGPU Renderer now awaits the submitted work in the old device's queue before destroying it
This commit is contained in:
@@ -24,16 +24,16 @@ export default ({ device, cache, canvasFormat, canvasContext }) => {
|
||||
const assets = [loadShader(device, cache, "shaders/wgsl/endPass.wgsl")];
|
||||
|
||||
const loaded = (async () => {
|
||||
const [imageShader] = await Promise.all(assets);
|
||||
const [endShader] = await Promise.all(assets);
|
||||
|
||||
renderPipeline = await device.createRenderPipelineAsync({
|
||||
layout: "auto",
|
||||
vertex: {
|
||||
module: imageShader.module,
|
||||
module: endShader.module,
|
||||
entryPoint: "vertMain",
|
||||
},
|
||||
fragment: {
|
||||
module: imageShader.module,
|
||||
module: endShader.module,
|
||||
entryPoint: "fragMain",
|
||||
targets: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user