Detect if GPU supports Pixel Shader 2.0 at runtime (Firemonkey)


This question comes from my previous question here:

Delphi XE7 Abstract Error on StyleLookup with Effect (FireMonkey)

Basically, I have several styled controls with effects applied. The effects work on most systems so I don’t want to take them out of my styles all together for the select few customers they won’t work on. Is there a way to detect whether or not the client has DirectX 9 AND the GPU installed supports Pixel Shader 2.0?

Comments are closed.