vendredi 4 septembre 2015

Testing compatibility of shaders

When I develop shader code on my machine I often find myself in the situation where the shader works perfectly on my machine, but on other graphic cards, drivers, operating systems, etc. it doesn't.

How to achieve compatibility of shaders?

I see a few approches:

  • Test on many different systems. But which systems to choose? Testing with every card on every OS and every driver is not realistic. Maybe we can assume that the vendors care for backward compatibility? In this case testing with old cards and drivers might be sufficient.

  • Ask the driver for a specific version and core profile. This helps a bit, but the drivers seem very lenient, allowing me to code things that aren't in the spec.

  • Code checkers that check the code for strict compatibility with a certain spec. There don't seen to be such tools around.

  • Don't bother and wait for bug-reports from users.Yet the error messages generated by the drivers are rather poor, and the observed behaviour might be as un-insightful as a black screen.

Aucun commentaire:

Enregistrer un commentaire