Quantcast
Channel: Questions in topic: "compute shader"
Viewing all articles
Browse latest Browse all 287

Black Screen in Android when calling compute shader dispatch in Update

$
0
0
Hello, I am trying to create a real time GPU Ray Tracer embedded in Augmented Reality using the Vuforia SDK. The ray tracer is done by rendering a texture on a Raw Image object nested inside a Canvas object. It works fine in android when no augmented reality objects are used but when I embed the canvas on an ImageTarget in Vuforia, the splash screen appears but the screen remains blank. After some debugging, I sniffed out that the bug is caused by the Compute Shader dispatch being called from the update function. private void Update() { UpdateTextureSize (); shader.SetFloat ("globalTime", Time.time); shader.Dispatch (0, numThreadGroupsX, numThreadGroupsY, numThreadGroupsZ); } ![alt text][1] ![alt text][2] Thank you very much for your help! [1]: /storage/temp/109906-computeshaderraytracing1.png [2]: /storage/temp/109907-arraytracer.png

Viewing all articles
Browse latest Browse all 287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>