Post B77aJt6ErEm3BGAOdU by ignaloidas@not.acu.lt
 (DIR) More posts by ignaloidas@not.acu.lt
 (DIR) Post #B77aJsL5gX3mp26k9A by azonenberg@ioc.exchange
       2026-06-08T06:18:42Z
       
       0 likes, 0 repeats
       
       @wren6991 slop, i assume.Although... I have been seriously thinking about one day making a JIT shader compiler in libscopehal that if you e.g. chain two simple math functions end to end, and nothing is using the intermediate results, will be able to concatenate the filter kernels to avoid allocating buffers and storing/loading from memory needlessly.This would be probably done by having prebuilt sub-kernels that read/write from predefined local variable names or something, then doing simple string concatenation on the blocks, then invoking glslc at run time to generate SPIR-V from the compiiled kernel then feeding it to vulkan.
       
 (DIR) Post #B77aJt6ErEm3BGAOdU by ignaloidas@not.acu.lt
       2026-06-08T11:07:37.335Z
       
       0 likes, 0 repeats
       
       @azonenberg@ioc.exchange @wren6991@types.pl SPIR-V is not that complicated, it would probably be viable to just do it all in that (so you don't need to ship glslc). Though likely a bit more complicated.