mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
wgpu: layout left blank should set it to "auto" in JS
This commit is contained in:
Vendored
+2
-2
@@ -748,7 +748,7 @@ class WebGPUInterface {
|
|||||||
const layoutIdx = this.mem.loadPtr(off(4));
|
const layoutIdx = this.mem.loadPtr(off(4));
|
||||||
return {
|
return {
|
||||||
label: label,
|
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)),
|
compute: this.ProgrammableStageDescriptor(off(this.sizes.ProgrammableStageDescriptor)),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -853,7 +853,7 @@ class WebGPUInterface {
|
|||||||
const layoutIdx = this.mem.loadPtr(off(4));
|
const layoutIdx = this.mem.loadPtr(off(4));
|
||||||
return {
|
return {
|
||||||
label: label,
|
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)),
|
vertex: this.VertexState(off(this.sizes.VertexState)),
|
||||||
primitive: this.PrimitiveState(off(this.sizes.PrimitiveState)),
|
primitive: this.PrimitiveState(off(this.sizes.PrimitiveState)),
|
||||||
depthStencil: this.DepthStencilStatePtr(off(4)),
|
depthStencil: this.DepthStencilStatePtr(off(4)),
|
||||||
|
|||||||
Reference in New Issue
Block a user