Fast paths for bounds checking #4360
Labels
area: naga processing
Passes over IR in the middle
help required
We need community help to make this happen.
naga
Shader Translator
type: enhancement
New feature or request
There are scenarios where we could omit the bound check entirely, which can have a serious effect on performance:
workgroup_memory[invocation_id]
- since we know the range of invocation IDs (spawned from Out-of-bounds clamping brings big perf regression on TFJS ML demos. gpuweb/gpuweb#1202 (comment))The text was updated successfully, but these errors were encountered: