onnxruntime/js/web/lib/wasm/jsep/webgpu/ops/3rd-party
Yulong Wang 50e6235af1
[js/web] allow ShaderHelper to use internal (non-I/O) variables (#18525)
### Description
This PR includes a change that inspired from #18452 to resolve a
requirement: a shader may depend on an instance of `IndicesHelper` to
generate WGSL code snippet, but the IndicesHelper instance is not
necessarily an input/output of the program. So the existing
`declareVariables()` function does not work with this scenario.

In order to support this requirement, I added this "use" function to
`interface ShaderHelper`, which takes a helper-like object as parameter.
The hidden implementation `ShaderHelperImpl` class will iterate the
helpers and call `impl()` for each.

@axinging @qjia7
2023-11-28 15:15:59 -08:00
..
activation_util.ts [js/webgpu] Fix conv2d with activation (#18388) 2023-11-10 12:54:35 -08:00
conv2d_mm_webgpu.ts [js/web] Fix conv2dMatmul errors due to #18452 (#18562) 2023-11-27 21:21:47 -08:00
conv_backprop_mm_webgpu.ts [js/webgpu] Refactor matmul conv to support uniforms for matmul (#18452) 2023-11-22 14:42:55 -08:00
conv_backprop_webgpu.ts [js/webgpu] revise uniform support (#17871) 2023-10-11 16:41:46 -07:00
conv_util.ts [js/webgpu] Refactor matmul conv to support uniforms for matmul (#18452) 2023-11-22 14:42:55 -08:00
matmul_packed_webgpu.ts [js/web] allow ShaderHelper to use internal (non-I/O) variables (#18525) 2023-11-28 15:15:59 -08:00