grill8
November 29th, 2008, 08:00 PM
Hello all,
I have a quick question about DirectX 9 shader globals.
Say you have two global variables in the shader ... is it technically ok to do the following:
int Level;
int TwoLevel = Level + Level;
So that when you change Level (via handle before rendering your batch) TwoLevel will be calculated accurately without accessing it?
Also, can you initialize your globals with calls such as pow/exp at the global scope level?
Thank you for your help.
Jeremy
I have a quick question about DirectX 9 shader globals.
Say you have two global variables in the shader ... is it technically ok to do the following:
int Level;
int TwoLevel = Level + Level;
So that when you change Level (via handle before rendering your batch) TwoLevel will be calculated accurately without accessing it?
Also, can you initialize your globals with calls such as pow/exp at the global scope level?
Thank you for your help.
Jeremy