terrafx / terrafx.interop.windows

Interop bindings for Windows.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

D3DERRors are listed as DDERRors

rickbrew opened this issue · comments

It looks like many D3DERR_ errors re-use ye ol' DirectDraw errors. For instance, D3DERR_OUTOFVIDEOMEMORY is the same value as DDERR_OUTOFVIDEOMEMORY.

In TerraFX, this means we only get DDERR_OUTOFVIDEOMEMORY instead of D3DERR_OUTOFVIDEOMEMORY.

So, I propose that either we get a second copy of these error codes so that we have both e.g. DDERR_OUTOFVIDEOMEMORY and D3DERR_OUTOFVIDEOMEMORY, or that these should be defined instead as D3DERR_ because DirectDraw is obsolete and less important.

Otherwise it's difficult if you want to convert code from C/C++ to C#, transcribe a D3D sample, or follow along with documentation or other samples and have it make sense.

It does not appear that the definitions are re-used, just the values, e.g.
image

Also, to be clear, there are zero instances of any elements with D3DERR in their name in TerraFX.Interop.Windows