|
I know this is an old thread, but I thought I'd list the steps I used to get RenderDoc to work with a simple Java/JOGL application. This is for Windows and Java-17....
0. install RenderDoc using the .msi provided on the RenderDoc webpage
1. add C:\Program Files\RenderDoc to the PATH system environment variable (requires restart)
2. add System.loadLibrary("renderdoc"); to first line of code in the java program (typically the no-arg constructor)
3. compile the java program
4. run RenderDoc
5. in RenderDoc, go to File > launch application
6. under "Executable Path" put the path to java.exe (probably in C:/Program Files/Java/jdk-17/bin) or similar
7. under "Working Directory" put the path to the folder containing the run.bat (or however you launch the application)
8. under "Command-line Arguments" put all of them (i.e., anything that goes after "java", including the name of the compiled .class file, and relative path to it if applicable)
9. click "launch application"
10. should see the program running in a graphic window, with some light annotation at the top
11. click the PrtSc key to capture a frame
12. back in RenderDoc, an icon of the frame should appear. Double-click it.
13. the inspection tabs should now work, such as "Pipeline State", which allows examining uniforms, etc.
|