Initial OpenCL + OpenGL Nbody Demo
This is just a proposed OpenCL + OpenGL Nbody demo
Uses jextract to extract Java bindings for both OpenGL and OpenCL.
Uses OpenCL for the physics and OpenGL to render.
Can compare OpenCL vs Java Multithreaded vs Java SingleThreaded
I have only tested on MacOSX so far.
The two Helpers CLWrap and GLWrap separate the jextract bindings from the NBody detail.
Both/Either can be used to create other OpenGL only or OpenCL only demos.
Progress
- [ ] Change must not contain extraneous whitespace
- [x] Change must be properly reviewed (no review required)
Reviewing
Using git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jextract.git pull/248/head:pull/248
$ git checkout pull/248
Update a local copy of the PR:
$ git checkout pull/248
$ git pull https://git.openjdk.org/jextract.git pull/248/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 248
View PR using the GUI difftool:
$ git pr show -t 248
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jextract/pull/248.diff
:wave: Welcome back gfrost! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.
❗ This change is not yet ready to be integrated. See the Progress checklist in the description for automated requirements.
@grfrost This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!
@grfrost This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.