- Home /
Question by
Moon519 · Aug 18, 2017 at 09:11 AM ·
compute shaderwarning
How to disable Warnings in Compute Shaders ?
Hi,
We are using Compute Shaders in our project and doing quite a lot of math operations. A warning is always generated :
"Shader warning in 'VertexGenerator.compute': integer divides may be much slower, try using uints if possible"
We need to use integers and not uints. Is there a way to disable these kind of warnings ? (we have 74 of them each time we change the shader so it's a bit annoying).
Have a nice day!
Comment
Best Answer
Answer by Destolos · Aug 18, 2017 at 09:47 AM
I didn't tested it, but perhaps this works: https://msdn.microsoft.com/en-us/library/windows/desktop/dd607355(v=vs.85).aspx
Your answer
![](https://koobas.hobune.stream/wayback/20220612133006im_/https://answers.unity.com/themes/thub/images/avi.jpg)