i've stumble upon a bug while using setGlobal function for shaders.
the function setGlobalInteger does not set any sort of value to a compute shader.
this is the code :
setGlobalInteger does not set a value of Global integer for compute shader
the function setGlobalInteger does not set any sort of value to a compute shader.
this is the code :
Code (CSharp):
- private void OnRenderImage(RenderTexture source, RenderTexture destination)
- {
- texture = UpdateTexture(texture, RenderTextureFormat.ARGB32, Screen.width, Screen.height);
- int ThreadGroupX = Mathf.CeilToInt(source.width / 8.0f);
- int ThreadGroupY = Mathf.CeilToInt(source.height / 8.0f);...