Giter VIP home page Giter VIP logo

webgpu-examples's People

Contributors

crowlkats avatar load1n9 avatar lucacasonato avatar tdillon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webgpu-examples's Issues

Dependency leads to 404 page

Hey, crowlKats! Thank you for all the work you've done bringing WebGPU to Deno.
I should point out though that export { Dds } from "https://crux.land/2arQ9t"; leads to a 404 page.

Invalid utf-8 sequence while running hello triangle

Hi I was trying Deno new WebGPU binding but I encounter this issue:

$  deno run --unstable --allow-write=output.png https://raw.githubusercontent.com/crowlKats/webgpu-examples/f3b979f57fd471b11a28c5b0c91d0447221ba77b/hello-triangle/mod.ts
Download https://raw.githubusercontent.com/crowlKats/webgpu-examples/f3b979f57fd471b11a28c5b0c91d0447221ba77b/hello-triangle/mod.ts
Download https://raw.githubusercontent.com/crowlKats/webgpu-examples/f3b979f57fd471b11a28c5b0c91d0447221ba77b/utils.ts
Download https://raw.githubusercontent.com/crowlKats/webgpu-examples/f3b979f57fd471b11a28c5b0c91d0447221ba77b/deps.ts
Download https://deno.land/x/[email protected]/mod.ts
Download https://crux.land/2arQ9t
Download https://deno.land/x/[email protected]/mod.ts
Download https://deno.land/x/[email protected]/mod.ts
Download https://www.cloudflare-terms-of-service-abuse.com/streaming.ts
Download https://www.cloudflare-terms-of-service-abuse.com/streaming.ts
Download https://www.cloudflare-terms-of-service-abuse.com/streaming.ts
Download https://crux.land/2arQ9t.ts
Download https://deno.land/x/[email protected]/mod.ts
error: invalid utf-8 sequence of 1 bytes from index 6
    at https://raw.githubusercontent.com/crowlKats/webgpu-examples/f3b979f57fd471b11a28c5b0c91d0447221ba77b/deps.ts:2:0```

meet error when run script

error: Uncaught (in promise) TypeError: Failed to execute 'createComputePipeline' on 'GPUDevice': 'layout' of 'GPUComputePipelineDescriptor' (Argument 1) is not of type GPUPipelineLayout.
const computePipeline = device.createComputePipeline({
                               ^
    at makeException (deno:ext/webidl/00_webidl.js:80:12)
    at deno:ext/webidl/00_webidl.js:867:15
    at Array.GPUComputePipelineDescriptor (deno:ext/webidl/00_webidl.js:712:34)
    at GPUDevice.createComputePipeline (deno:ext/webgpu/01_webgpu.js:1150:38)
    at file:///Users/airing/Files/code/wgpu-deno-example/hello-compute/mod.ts:80:32

deno version:

deno 1.23.2 (release, x86_64-apple-darwin)
v8 10.4.132.8
typescript 4.7.2

WebGPU doesn't work on versions of deno >= 1.32

Creating this issue to help others who run into the same error:

error: Uncaught ReferenceError: GPUTextureUsage is not defined
const basic = GPUTextureUsage.COPY_SRC | GPUTextureUsage.COPY_DST |

denoland/deno#18094 removed support for webgpu in version 1.32. deno upgrade --version 1.31.3 needs to be run before the examples can be used

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.