]> zoso.dev Git - libnemo.git/commit
Start experimenting with 4-byte assignment using workgroup size as 1 byte via local_i...
authorChris Duncan <chris@zoso.dev>
Thu, 2 Jan 2025 13:55:02 +0000 (05:55 -0800)
committerChris Duncan <chris@zoso.dev>
Thu, 2 Jan 2025 13:55:02 +0000 (05:55 -0800)
commit86e3a1e8cd0831786ea09ee084067e4f6b25d6f9
treef62ac31678dde4a77854c0be44b9e57439785d91
parent4148d34a850f9171bdcc514def69f96cf1864100
Start experimenting with 4-byte assignment using workgroup size as 1 byte via local_invocation_id and then 3 dimensions in dispatch as 3 more bytes via workgroup_id.x/y/z, all concatenated into global_invocation_id. Looping in compute shaders is also OK versus fragment shaders, so iterate within the shader instead of reading out every frame with CPU.
src/lib/workers/powgpu.ts