๐๐ป Online Demo
A playground for WebGPU.
WebGPU Playground
Home Page: https://06wj.github.io/WebGPU-Playground
License: MIT License
๐๐ป Online Demo
A playground for WebGPU.
I tried to display the following sample with Chrome Canary 111
.
https://06wj.github.io/WebGPU-Playground/#/Samples/CubeTexture
However, there seems to be an error in the console.
Tint WGSL reader failure: :20:11 error: 'final' is a reserved keyword
var final = vec3<f32>(pos.x, pos.y, pos.z);
^^^^^
Like if I give it a image url can it render the image on the screen
The sample doesn't seem to work on Chrome Canary right now due to some breaking changes in WebGPU specs in the last few months.
The following article will be helpful for understanding the main changes.
PSA for Chromium / Dawn WebGPU API updates 2020-10-19
https://hackmd.io/@webgpu/B1UCwfgzv
PSA for Chromium / Dawn WebGPU API updates 2021-04-07
https://hackmd.io/@webgpu/HJdib9rOD
PSA for Chromium / Dawn WebGPU API updates XXXX-XX-XX
https://hackmd.io/@webgpu/BkGB45T8O
I tried running the WebGPU Playground sample on Chrome Canary.
However, it seems that the following error is output to the console.
GPUBuffer.setSubData is deprecated: use createBufferMapped (with copyBufferToBuffer if needed) (but note the design/spec of this API is still in flux)
This is probably because the methods of the WebGPU API you're using are outdated.
Also, Firefox Nightly is starting to support WebGPU, but it doesn't seem to support the older methods.
TypeError: verticesBuffer.setSubData is not a function
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.