Jump to content

  • Log In with Google      Sign In   
  • Create Account

where can i find shader assemble docs


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 tcige   Members   -  Reputation: 206

Like
0Likes
Like

Posted 23 April 2013 - 11:50 PM

for example, there is no info about 'dcl_color' on msdn



Sponsor:

#2 MJP   Moderators   -  Reputation: 11311

Like
2Likes
Like

Posted 24 April 2013 - 12:41 AM

Vertex shader instructions

 

Pixel shader instructions

 

'dcl_color' could be dcl_usage input, dcl_usage output, or dcl_semantics, depending on the context and whether it's used in a vertex shader or a pixel shader.



#3 tcige   Members   -  Reputation: 206

Like
0Likes
Like

Posted 24 April 2013 - 01:01 AM

Vertex shader instructions

 

Pixel shader instructions

 

'dcl_color' could be dcl_usage input, dcl_usage output, or dcl_semantics, depending on the context and whether it's used in a vertex shader or a pixel shader.

 

thanks a lot

 

do you mean changing the letter after '_' of D3DDECLUSAGE member to the lower case and then connecting to 'dcl_'

 

but in the example of dcl_usage output, what does 'dcl_color4' mean



#4 NightCreature83   Crossbones+   -  Reputation: 2823

Like
0Likes
Like

Posted 24 April 2013 - 03:06 AM

It says that the register will be used as a four component color value, it's not an output/input declaration at that point look at the comment behind it that tells you it is a semantic in that case. Semantics are used to identify the usage of the register.


Worked on titles: CMR:DiRT2, DiRT 3, DiRT: Showdown, GRID 2, Mad Max

#5 tcige   Members   -  Reputation: 206

Like
0Likes
Like

Posted 24 April 2013 - 03:20 AM

It says that the register will be used as a four component color value, it's not an output/input declaration at that point look at the comment behind it that tells you it is a semantic in that case. Semantics are used to identify the usage of the register.

 

thanks a lot

 

if it is omitted, what is the default value






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS