HLSL Output Semantics Color4

Started by
1 comment, last by dali 14 years ago
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!
Gaudeamus igitur, iuvenes dum sumus!
Advertisement
Just looking at the docs, there is a D3DCAPS9 cap NumSimultaneousRTs. What is this set to for you?
Ok thank you problem solved! :) NumSimultaneousRTs: 4...
Gaudeamus igitur, iuvenes dum sumus!

This topic is closed to new replies.

Advertisement