Jump to content

SlimDX DX11


Yamaeda

Recommended Posts

Hi guys!

 

So, for fun i'm trying to follow a C# tutorial on DX11 and get it running in LabVIEW through SlimDX. As far as i can see i've done all the steps necessary, but i only get a window, it doesn't clear to the expected color.

Have any of you tested this? What am i missing?

The tutorials i've looked at are linked in the VI. And those .net nodes sure makes the code BIG.

(If i get this to work i'll probably make some wrappers to clean it up)

 

/Y

tutorialDX11-2013.vi

Link to comment

Yamaeda,

 

I do not know what is wrong with your code, but can offer you this advice. To the best of my knowledge .NET calls are actually very expensive in LabVIEW, a single call can be something like a few milliseconds! Now, it was a few versions of LabVIEW ago that I had this problem, but my understanding is that it is just the "managed" way of how .NET and LabVIEW operates that this is likely to always be the case.

 

If you are trying to render lots of stuff I expect you will have lots of .NET calls so just be careful with performance.

 

For reference, I was using SFML, it seemed like quite a nice library but performance was terrible from within LabVIEW.

Link to comment

I have no serious plan on making a DX11 game or similar, although it'd be really interesting and the multithreading part is alot easier than in e.g. C++. So, performance isn't a real issue for now, but if i get this to work i'll see if i can get direct compute to work from within LV. ;)

 

/Y

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.