Motherboard Forums


Reply
Thread Tools Display Modes

Maximum ammount of local variables in cg shaders ?

 
 





















Skybuck Flying
Guest
Posts: n/a

 
      10-24-2009, 06:00 AM


Hello,

I have a few questions about local variables in cg shaders...

I read arb_fragment_program and arb_fragment_program2 specification which is
about the assembly side of things...

There seem to be about 64 temporarely registers available or so...

However so far it seems it's possible to use many more local variables in
cg/cgfx shaders ?

For now I wonder what will happen if there are for example 1000 local
variables in a shader all "active" at the same time ?

Is this possible ? If so how is it implemented ? Does the gpu have some kind
of stack where excessive temporarely variables are pushed onto, and popped
off as needed ?

Or is there simply some kind of "temporarely variable limitation in cg
shaders" ?

So far I have already noticed one limitation: loop indexes only go to
4096...

Bye,
Skybuck.


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Security update 2008-2 Michelle Steiner Apple 0 03-19-2008 12:19 AM
Postfix: can send but can't receive osiris@abydos.kmt Apple 24 07-12-2006 09:04 PM
Re: Upgrading from OS 7.6.1 to 9.1 Michelle Steiner Apple 2 05-12-2004 11:12 PM


All times are GMT. The time now is 09:17 AM.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43