• Advertisement
Sign in to follow this  

HLSL Output Semantics Color4

This topic is 2880 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

Hello! I have a problem using with a hlsl shader. If i write struct PS_OUTPUT { float4 color0 : COLOR0; float4 color1 : COLOR1; float4 color2 : COLOR2; float4 color3 : COLOR3; }; the shader works fine. But if i add a COLOR4 the shader wont work anymore. struct PS_OUTPUT { float4 color0 : COLOR0; float4 color1 : COLOR1; float4 color2 : COLOR2; float4 color3 : COLOR3; float4 color4 : COLOR4; // Does not work }; What is the problem? In the directx docu it sais that you can use color0-color7. Thank you a lot!

Share this post


Link to post
Share on other sites
Advertisement
Just looking at the docs, there is a D3DCAPS9 cap NumSimultaneousRTs. What is this set to for you?

Share this post


Link to post
Share on other sites
Ok thank you problem solved! :) NumSimultaneousRTs: 4...

Share this post


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

  • Advertisement