In web target i can change pipeline blendings and then set pipeline, and it works. But in native it works only on pipeline creation. So i cant use same shader with different blendings.
I was trying to fix it in kha but no luck.
I'm using g4.
-
Blending on native target
| last edited by RudenkoArts Reputation: 0 | Posts: 11 -
Blending on native target
It's supposed to be that way, you can't change a pipeline after it's compiled (that you can do it in html5 is the bug). That's because you get exactly the same behaviour when using D3D12, Vulkan or Metal directly. And that is because just randomly changing a blend mode like that was one of the things which on older APIs could be a cause for random background shader recompiles and therefore hard to fix stutters.
So, to use a shader with different blend modes, create multiple pipelines.