Sign in to follow this  
dali

HLSL Output Semantics Color4

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this