Tagged Questions
2
votes
1answer
86 views
Do shader program compilers optimise divide-by-PoT-constants to bitshift operations?
So just to restate that, let's say we have this:
float f = g / 2;
Given the divisor is a constant, will the shader compiler auto-optimise this to a bitshift operation, as some language compilers are ...
4
votes
2answers
3k views
Does Unity for PC use Direct3D or OpenGL?
I am a mac developer using Unity and I hardly use a PC. When you build a Unity game for Windows, does it use Direct3D or OpenGL?
P.S. I'm not sure if it's called Direct3D or DirectX