Direct3D 9 + C#

Hi all,

Officially, NSight does not support manged code and Direct 3D 9. The first version of NSight with C# support is version 5.6 of Night but that only supports Direct3D 9. Is it possible to get NSight to work with Direct3D without upgrading to Direct3D 11?

The reason I want NSight to work with Direct3D is because our application uses OpenGl to do its rendering and when its done, copies it to a Direct 3D 9 buffer for displaying. Reason is that our application is WPF and OpenGl is not supported by WPF.

Thanks!

Direct3D 9 was supported for Frame Debugging and Range Profiling up to NsightVSE v6.0.
v6.0 also supported OpenGL 4.2 - 4.5.

Hi,

Sorry for the delay in replying.

I downloaded NSightVSE 6.0 and I get “The attached application is creating a D3D9 device but Night only supports D3D11 and higher. This device will not be tracked.” The log file it writes to nvcompatlog.txt has the following (Nothing else):

                                glClientActiveTextureARB
                                               glTexEnvi
              glTexImage2D (internalFormat = 0x00008048)
                                                 glBegin
                                               glColor3f
                                            glTexCoord2f
                                              glVertex3f
                                                   glEnd
                                           glLightModeli
                                              glColor4ub
                                              glVertex2i
                                               glFrustum
                                                glScalef
                                              glPushName
                                              glColor4fv
                                               glPopName
                                              glVertex3d
                                           glRasterPos3f
                                                glBitmap
                                         glColorMaterial
                                              glNormal3f
                                               glColor3d
                                              glColor3fv
                        glDrawArrays (mode = 0x00000008)

From here [url]https://developer.nvidia.com/gameworksdownload#?dn=nsight-visual-studio-edition-6-0-0[/url] .
I see that D3D9 is not supported. Are you sure?

I tried NSight v5.6 as well and got this error message:
wglDXRegisterObjectNV (Unsupported DX object type; only 2D D3D11 textures are currently supported).
Our application is doing Direct3D/OpenGl interop so we need these extensions. If there’s an alternative to the extensions I’m willing to try it.

This is the official Documentation release Notes.

5.6 Release of the Graphics Debugger
• Support for Direct3D 9 is deprecated and will be removed in the next version of NVIDIA Nsight Visual Studio Edition.
6.0 Release of the Graphics Debugger
• Support for Direct3D 9 has been removed

So it sounds like Nexus didn’t support your specific use-case in any release