GSoC 2012 - Implement a few missing functions in D3DX9