wgsl_to_wgpu icon indicating copy to clipboard operation
wgsl_to_wgpu copied to clipboard

Infer bind group visibility from entry points

Open ScanMountGoat opened this issue 3 years ago • 1 comments

The current implementation assumes one shader file for all entry points. Entry points have an associated ShaderStage, so the visibility can be inferred. There may be issues with some resources like SSBOs not working with all stages.

  • [x] set visibility to available shader stages in module
  • [ ] check visibility for SSBOs

ScanMountGoat avatar Mar 10 '22 04:03 ScanMountGoat

Setting the visibility to all available stages can cause unnecessary API calls if resources are used in only some of the stages. This can lead to setting textures for the vertex shader, for example.

ScanMountGoat avatar Jun 01 '22 20:06 ScanMountGoat