DiligentCore
DiligentCore copied to clipboard
WebGPU: optimize WGSL patching
Instead of using Tint each time bindings need to be patched, store offsets in the WGSL source code where bindings are defined for each resource. Then, simply replace the values in the source code (basically, same approach as patching SPIRV bytecode, but with WGSL source).