Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

setGlobalInteger does not set a value of Global integer for compute shader

$
0
0
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 :

Code (CSharp):
  1.  
  2. private void OnRenderImage(RenderTexture source, RenderTexture destination)
  3. {
  4.     texture = UpdateTexture(texture, RenderTextureFormat.ARGB32, Screen.width, Screen.height);
  5.  
  6.     int ThreadGroupX = Mathf.CeilToInt(source.width / 8.0f);
  7.     int ThreadGroupY = Mathf.CeilToInt(source.height / 8.0f);...
setGlobalInteger does not set a value of Global integer for compute shader

Viewing all articles
Browse latest Browse all 1466670

Trending Articles