Skip to main content
GameDev.net gamedev.net
🔒 Locked

vpos

Started by edwinnie Apr 9, 2006 at 2:28 AM 2 replies 750+ views
Original Post
edwinnie
edwinnie
hi there! I amd trying to use the VPOS in a GF7600 and I am having this error instead: error X5969: dcl for vPos register does not support any modifiers. does anyone know what it is?? thx! Edwin
jollyjeffers
jollyjeffers
From the looks of that error you're trying to modify the VPOS, which isn't allowed as it's a read-only input. Even if you could write to it, there wouldn't be much point as it's not used again...

The error should indicate which line is wrong, so go to that and make sure you're not changing it. If you really need to change it then make a defensive copy first...

hth
Jack
<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ |
edwinnie
edwinnie
hi Jack!
I am trying to use it to access a texture. but if i put tex2D(...,vPos.xy), it also doesnt compile at runtime.

thx!
Edwin
ET3D
ET3D
My guess would be that you can't use swizzling on vPos. Try assigning it to a variable and using that, or just try using it without the .xy.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.