DiligentCore icon indicating copy to clipboard operation
DiligentCore copied to clipboard

WebGPU: optimize WGSL patching

Open TheMostDiligent opened this issue 1 month ago • 0 comments

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).

TheMostDiligent avatar Jun 28 '24 19:06 TheMostDiligent