• Advertisement
Sign in to follow this  

D3DBLENDOP_SUBTRACT Hardware Support in D3D9

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

Hi,

 

I wondered about the various blend operations - specifically, I want to use D3DBLENDOP_SUBTRACT.

 

Are these supported in all hardware, or do I have to check the caps for that?

I could not find any capabilities related to the blend operation. (Only for SrcBlend, and DestBlend).

 

 

Thanks!

Share this post


Link to post
Share on other sites
Advertisement

The cap for this is in PrimitiveMiscCaps; if the D3DPMISCCAPS_BLENDOP bit is set then blend operations other than add are supported.  I don't have data on when this became supported in hardware for D3D drivers but the OpenGL equivalent (glBlendEquation) dates back to GL1.2 or 1.3 - which puts it at about a 15-year old piece of functionality, so I'd say that you can safely rely on it.

Share this post


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

  • Advertisement