wgsl-bindgen icon indicating copy to clipboard operation
wgsl-bindgen copied to clipboard

Automatically determine `BindGroupLayoutEntry` visibility

Open Swoorup opened this issue 1 year ago • 1 comments

Is it possible to determine the visibility within wgpu::BindGroupLayoutEntry? ie automatically set to either VERTEX, FRAGMENT, COMPUTE or VERTEX_FRAGMENT.

Swoorup avatar Jul 05 '24 10:07 Swoorup

Doesn't look possible, at least we should look into a way to manually override the generation.

Swoorup avatar Jul 05 '24 12:07 Swoorup

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.

Swoorup avatar Jun 27 '25 18:06 Swoorup