Sign in to follow this  
Tubos

D3DBLENDOP_SUBTRACT Hardware Support in D3D9

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

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

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