I have an odd case.
Some (not all) of the ComputeShaders in my project are not updating (recompiling I suspect) after I edit them and hit Play. The strange things is, if I hit Play again, then it is updated and the new code is executed. Upon first Play the old version of the shader is loaded, and the second time the new. I can’t find any noticeable difference betweens the ones that work, and those that do not. I am using the following code to instantiate all my ComputeShaders, also the ones that work fine.
ComputeShader computeShader = Instantiate( Resources.Load<ComputeShader>( "TheShaderName" ) );
Are anyone else experiencing this? Does anyone have clues to what may be causing this?
Unity 2021.2.16f1