Jump to content
  • Advertisement
Sign in to follow this  
You7878

SlimDX internal pointer

This topic is 3172 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi All. I have created SlimDX.Direct3D9.Device and want to get IDirect3DDevice9 interface. Device.InternalPointer is inacessible due to protection level. How can i get this interface? Thank You Much

Share this post


Link to post
Share on other sites
Advertisement
Use the ComPointer property. It's a System::IntPtr that wraps the underlying COM pointer.

Share this post


Link to post
Share on other sites
well, i try to integrate CUDA and SlimDX, and when i use ComPointer in CUD3DRuntime.cudaD3D9SetDirect3DDevice(device.ComPointer) it looks like it doesnot accept it.

Share this post


Link to post
Share on other sites
The problem was with CUDA initialization. I did:
CUDA cuda = new CUDA(0, true); (flag says whether to initialize driver. i always did so before because never tried to integrate d3d and cuda)
but for interop looks like you need to call:
CUDA cuda = new CUDA(0)
Thank You For Help, i will continue on C#|CUDA.NET|SlimDX interop. Actually i am trying to put SimpleD3DTexture sample from CUDA SDK into CUDA.NET (if someone is interested)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!