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

hello-triangle doesn't work anymore #16

Open
theoparis opened this issue Jul 21, 2024 · 1 comment
Open

hello-triangle doesn't work anymore #16

theoparis opened this issue Jul 21, 2024 · 1 comment

Comments

@theoparis
Copy link

theoparis commented Jul 21, 2024

error: Uncaught (in promise) ReferenceError: GPUTextureUsage is not defined
const basic = GPUTextureUsage.COPY_SRC | GPUTextureUsage.COPY_DST |
              ^
    at https://jsr.io/@std/webgpu/0.224.5/describe_texture_format.ts:22:15

Deno version: 1.45.2
Command used to run hello-triangle: deno run -A hello-triangle/mod.ts

@theoparis
Copy link
Author

My bad - since the unstable flag is deprecated I had removed it.

⚠️  The `--unstable` flag is deprecated and will be removed in Deno 2.0. Use granular `--unstable-*` flags instead.
Learn more at: https://docs.deno.com/runtime/manual/tools/unstable_flags

It turns out I needed to add

{
  "unstable": ["webgpu"],
}

To deno.json.

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

Successfully merging a pull request may close this issue.

1 participant