From 19b70f5ef7199ea9d6d5cf145909ae04f16943f0 Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Thu, 27 Feb 2025 22:28:15 +0100 Subject: [PATCH] wgpu: layout left blank should set it to "auto" in JS --- vendor/wgpu/wgpu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/wgpu/wgpu.js b/vendor/wgpu/wgpu.js index e389b1e4d..74ce8dd91 100644 --- a/vendor/wgpu/wgpu.js +++ b/vendor/wgpu/wgpu.js @@ -748,7 +748,7 @@ class WebGPUInterface { const layoutIdx = this.mem.loadPtr(off(4)); return { label: label, - layout: layoutIdx > 0 ? this.pipelineLayouts.get(layoutIdx) : undefined, + layout: layoutIdx > 0 ? this.pipelineLayouts.get(layoutIdx) : "auto", compute: this.ProgrammableStageDescriptor(off(this.sizes.ProgrammableStageDescriptor)), }; } @@ -853,7 +853,7 @@ class WebGPUInterface { const layoutIdx = this.mem.loadPtr(off(4)); return { label: label, - layout: layoutIdx > 0 ? this.pipelineLayouts.get(layoutIdx) : undefined, + layout: layoutIdx > 0 ? this.pipelineLayouts.get(layoutIdx) : "auto", vertex: this.VertexState(off(this.sizes.VertexState)), primitive: this.PrimitiveState(off(this.sizes.PrimitiveState)), depthStencil: this.DepthStencilStatePtr(off(4)),