wgsl-bindgen
wgsl-bindgen copied to clipboard
Automatically determine `BindGroupLayoutEntry` visibility
Is it possible to determine the visibility within wgpu::BindGroupLayoutEntry? ie automatically set to either VERTEX, FRAGMENT, COMPUTE or VERTEX_FRAGMENT.
Doesn't look possible, at least we should look into a way to manually override the generation.
Currently a crude way is employed, ie if shader has fragment, vertex entries, just use them both. And isn't that granular. Think this is good enough, ensure that this also works for shared bindings along with compute shader.