VL.Fuse icon indicating copy to clipboard operation
VL.Fuse copied to clipboard

Ensure stable IDs for every shader so the stride shader cache works

Open tebjan opened this issue 4 years ago • 0 comments

basically, every shader generation needs to have a context that carries the ID counter/generator. on every recompile the id counter can be created together with the compilation context. this will make sure that the shaders will always be the same at every start of vvvv.

this is how it is done for ShaderFX: https://github.com/vvvv/VL.Stride/commit/a50ae1da61593db59d97cfec4223cf908190f55c#diff-91f406fa91afc39ec40496e370408932bc025abdbb4c3941be7f3a1d3e2f9a35R18

here are two screenshots from two starts of the same help patch: image image

tebjan avatar Sep 03 '21 15:09 tebjan