GPWiki.org
GPWiki.org
It is currently Fri May 24, 2013 5:28 am

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Fri Nov 25, 2011 8:31 pm 
Rookie

Joined: Fri Nov 25, 2011 8:30 pm
Posts: 3
Hi,

My name is Onur Er. Today, I have released my very own Managed DirectX layer which I was working on for 2 years. I am very excited and I wanted to share it with the community.

I was using SlimDX but at some point, it didn't satisfy me. Because they have implemented their wrapper library in a very managed structure. They implemented their own logic, functions and parameters. It doesn't match DirectX SDK documentation directly.
My wrapper library preserves the original structure of DirectX. All interface, function, parameter names are mostly identical to DirectX SDK. Most of the structs are directly mapped to C++ structs in memory. So, there is no need to move data blocks between managed and native structs before and after calling DX functions. That brings huge performance improvement.

I have also implemented DXUT utility library and 3D samples/tutorials in C# language. They are translated from original Microsoft C++ source to C# easily by the help of my Xtro.MDX wrapper library.

You can read detailed information from here : http://managed-directx.googlecode.com

There are two rar files in download section. One includes 32 and 64 bit binaries only. The other rar includes complete visual studio 2010 solution including source code, utility library, samples and tutorials.

I would like to hear your comments. My email is onurer@gmail.com


Top
 Profile  
 
PostPosted: Sat Nov 26, 2011 4:24 pm 
King Code Monkey
User avatar

Joined: Wed Sep 01, 2004 3:05 pm
Posts: 11182
Location: Abingdon, MD
Xtro wrote:
My wrapper library preserves the original structure of DirectX. All interface, function, parameter names are mostly identical to DirectX SDK. Most of the structs are directly mapped to C++ structs in memory. So, there is no need to move data blocks between managed and native structs before and after calling DX functions. That brings huge performance improvement.


But doesn't necessarily make your code structure better. The DX SDK functions are not very OOP friendly and some of the naming conventions are just plain horrible. The whole point of writing a wrapper is to make it more friendly for the language for which you're doing the wrapping.

_________________
Bored? Head on over to my blog and see what I'm up to.

Microsoft XNA MVP


Top
 Profile  
 
PostPosted: Sat Nov 26, 2011 5:28 pm 
Machaira wrote:
But doesn't necessarily make your code structure better. The DX SDK functions are not very OOP friendly and some of the naming conventions are just plain horrible. The whole point of writing a wrapper is to make it more friendly for the language for which you're doing the wrapping.


You are very right. But I didn't claim that my version is better. It's just another wrapping approach. Keeping the SDK structure was the thing I needed when I was using SlimDX. Since they implemented their own OOP friendly structure, they needed to write their own documentation. But I liked to use original DX SDK documentation and expected to be able to write same code examples in C#. My wrapper version is serving to that need of me (and maybe others like me).

For example, translating the huge Microsoft DXUT library and tutorials/samples into C# was very very easy with help of my wrapper library because coding structure is same with DX SDK. Of-course I renamed lots of items from D3D10PASS_DESCRIPTION style to PassDescription style.

Thank you for your comment.


Top
  
 
PostPosted: Sat Nov 26, 2011 5:29 pm 
Rookie

Joined: Fri Nov 25, 2011 8:30 pm
Posts: 3
I am sorry. The last post was mine but the forum site didn't log me in automatically.


Top
 Profile  
 
PostPosted: Tue Nov 29, 2011 12:29 am 
Game Programming Guru

Joined: Sun Aug 15, 2004 6:20 pm
Posts: 1090
It would be interesting to see some code comparisons as well as performance comparisons.

_________________
Heard in #gpwiki: <wzl> is there some serious grammar fail in your line or am i just too intelligent for your logic


Top
 Profile  
 
PostPosted: Tue Nov 29, 2011 4:06 pm 
sdw wrote:
It would be interesting to see some code comparisons as well as performance comparisons.


Yes, I think I should write a blog post about it. Thank you.


Top
  
 
PostPosted: Sun Dec 11, 2011 11:03 pm 
Rookie

Joined: Fri Nov 25, 2011 8:30 pm
Posts: 3
Here is my blog post about performance comparison between XtroMDX library and the other managed directx libraries SlimDX and SharpDX.

http://xtrothearctic.wordpress.com/2011 ... results-2/


Top
 Profile  
 
PostPosted: Tue Dec 13, 2011 10:23 pm 
I have updated my library source code to work on DirectX SDK June 2010. (Only googlecode repository is updated. Download section isn't touched yet)


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: Baidu [Spider] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group