Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webgpu02 will not run #4

Open
gschian0 opened this issue Jul 2, 2022 · 2 comments
Open

webgpu02 will not run #4

gschian0 opened this issue Jul 2, 2022 · 2 comments

Comments

@gschian0
Copy link

gschian0 commented Jul 2, 2022

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...

@XJawher
Copy link

XJawher commented Jul 20, 2022

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

@jack1232
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants