webgpu improvements

This commit is contained in:
Jorijn van der Graaf 2026-05-24 13:32:08 +02:00
commit 8347467e1e
18 changed files with 1932 additions and 153 deletions

View file

@ -36,6 +36,11 @@ export namespace Crafter {
SampledTexture = 1, // sampled texture_2d<f32>, handle is a slot into heap.imageTable
Sampler = 2, // filtering sampler, handle is a slot into heap.samplerTable
SampledTextureArray = 3, // sampled texture_2d_array<f32>, handle is a slot into heap.imageTable
// read-write storage SSBO (var<storage, read_write> in WGSL). Use
// for buffers shaders need to MUTATE — e.g. physics shaders that
// integrate node momentum, write brace stress, or output TLAS
// instance transforms.
BufferReadWrite = 4,
};
struct UICustomBinding {