• Advertisement
Sign in to follow this  

where can i find shader assemble docs

This topic is 1730 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement