WebGPU-Step-By-Step icon indicating copy to clipboard operation
WebGPU-Step-By-Step copied to clipboard

webgpu02 will not run

Open gschian0 opened this issue 3 years ago • 2 comments

While running webgpu02... I've already debugged the pipleine and this is what i'm seeing ...

Type 'IteratorResult<{ view: GPUTextureView; loadValue: { r: number; g: number; b: number; a: number; }; storeOp: "store"; }, any>' is not assignable to type 'IteratorResult<GPURenderPassColorAttachment | null, any>' Type 'IteratorYieldResult<{ view: GPUTextureView; loadValue: { r: number; g: number; b: number; a: number; }; storeOp: "store"; }>' is not assignable to type 'IteratorResult<GPURenderPassColorAttachment | null, any>'. Type 'IteratorYieldResult<{ view: GPUTextureView; loadValue: { r: number; g: number; b: number; a: number; }; storeOp: "store"; }>' is not assignable to type 'IteratorYieldResult<GPURenderPassColorAttachment | null>'. Type '{ view: GPUTextureView; loadValue: { r: number; g: number; b: number; a: number; }; storeOp: "store"; }' is not assignable to type 'GPURenderPassColorAttachment'. Object literal may only specify known properties, and 'loadValue' does not exist in type 'GPURenderPassColorAttachment'.

looks to be an error with this const renderPass = commandEncoder.beginRenderPass({ colorAttachments: [{ view: textureView, loadValue: { r: 1., g: 1., b: 1., a: 1. }, //background color storeOp: 'store' }] });

I'm not sure how to fix this part...

gschian0 avatar Jul 02 '22 22:07 gschian0

the webgpu wgsl language syntax has changed to many. you try to run the webgpu54,its will be worked

XJawher avatar Jul 20 '22 13:07 XJawher

I just update the code to WebGPU version 0.1.24. You can check the live demos at https://jack1232.github.io/webgpu00/ on Chrome Canary.

jack1232 avatar Sep 19 '22 14:09 jack1232