Alexandre Mutel has been busy generating a .NET wrapper for DirectX 11. From what I could gather he is reading .h files in and writing .cs files out.
Note that his post seems to be unavailable.
New OpCodes used by his tool:
For future reference to gather some of my thoughts:
Could one at one point program a java application in C# which runs on JVM and uses DirectX via jni? Technically it is possible yes although while jsc uses a version of jni which seems to be bound to the CDecl calling convention.
The names of the exported native functions can be read as described on stackoverflow. For parameters a .h file is required.
see also: http://en.wikipedia.org/wiki/Interix
__cdecl: caller pushes and pops args off stack, args passed right to left.
Older, unmanaged code that was developed by using the standard C libraries can implement functions that take variable numbers of parameters by using a technique that is known as varargs. Only the code that calls these functions knows for certain what it has placed on the stack, so it is the responsibility of the calling code to clean up the stack when the function completes. This is referred to as the Cdecl calling convention. It is the mechanism that unmanaged code that runs on Windows Embedded CE uses (you can use this as a point to select between Cdecl and StdCall nn your code).