munrocket

Results 112 comments of munrocket

Here real world example that can be expressed better with this proposal ```ts //before temp = 2. * (dO.x * u - dO.y * v + z.x * du -...

For `readPixel` we need to change context usage for example to { usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.COPY_SRC }. Here additional samples with 'toDataURL', 'toBlob', 'imageBitmap' https://github.com/gpuweb/cts/blob/c84e2748ec4ed1daff7cb836c5c7d1a01664be28/src/webgpu/web_platform/canvas/readbackFromWebGPUCanvas.spec.ts

Hmm, interesting. Reading canvas back is useful for screenshots or video capture. Month ago I am tried to find *any* example with it. TF.js/Babylon.js was the first projects where I...

It works for me. But I need to invoke .toBlob() right after `device.queue.submit([commandEncoder.finish()]);`. For some reason invoking it from another place gives me empty picture.

GLTF loader in REGL https://github.com/gamedev-js/regltf

Zora and tape-modern uses pure ESM approach and works in browser and in node. But I am not sure here, they not popular.

Reference types example: with console and webgl gl.ts ```ts export type GLenum = u32; export type Program = externref; export type WebGLShader = externref; export type WebGLProgram = externref; export...

Loader documentation is bad. Better to this one https://jtanaka.gitbook.io/guide/getting-started/using-the-loader Also I recommend to check `as-bind`, later you can use `loader` if `as-bind` will be limited for you.

It's not WASI, but here `hello world` example in browser. Also I recommend to check reference types example #15 if you want to write *console.log()* directly in AssemblyScript ```ts //main.ts...