-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.in
38 lines (27 loc) · 1.02 KB
/
README.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
## renderdoc_jffm
A Java interface to the [RenderDoc API](https://renderdoc.org).
## Features
* A friendly Java interface to the RenderDoc API.
* [JPMS](https://en.wikipedia.org/wiki/Java_Platform_Module_System)-ready.
* ISC license.
## Usage
When running your application, you must allow access to the
[FFM](https://openjdk.org/jeps/454) API for the module
`com.io7m.renderdoc_jffm.core`:
```
$ java --enable-native-access=com.io7m.renderdoc_jffm.core ...
```
Run your application from RenderDoc. RenderDoc works by injecting a native
library into your application. Then, inside your application, call
`RenderDoc.open()`:
```
try (final var doc = RenderDoc.open()) {
...
}
```
The obtained `RenderDocType` interface is a type-safe, memory-safe interface
to the API exposed by the RenderDoc native library. The interface allows for
setting options and triggering captures.
The `open()` method will raise an `IOException` with a useful error message
if the `renderdoc` native library is not present in the current application
process.