|
-
November 29th, 2008, 09:00 PM
#1
Quick question about DirectX 9 shader globals.
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|