Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#Actualiedoc

Posted 30 December 2012 - 07:55 AM

just to be clear, MSDN does not specify WORLDVIEW because you can use any semantic name you want. WORLDVIEW is not a system value. you could have named it WV, or WORLDVIEWMATRIX if you wanted, as long as you have matching names in both the input layout and shader parameters

 

you could even use POS instead of POSITION, or TEXTURECOORDINATE instead of the common TEXCOORD if you wanted. system values (SV_) are values the non-programmable stages of the graphics pipeline such as the rasterizer stage can supply or take in. These are all documented on MSDN as you've seen.

 

I don't know why microsoft doesn't mention that you can change the semantic name as long as its not a system value, but i'm guessing its to keep things standard


#2iedoc

Posted 30 December 2012 - 07:34 AM

just to be clear, MSDN does not specify WORLDVIEW because you can use any semantic name you want. WORLDVIEW is not a system value. you could have named it WV, or WORLDVIEWMATRIX if you wanted, as long as you have matching names in both the input layout and shader parameters


#1iedoc

Posted 30 December 2012 - 07:34 AM

just to be clear, you can use any semantic name you want. WORLDVIEW is not a system value. you could have named it WV, or WORLDVIEWMATRIX if you wanted, as long as you have matching names in both the input layout and shader parameters


PARTNERS