Skip to content

OpenCL for jME3 - some missing features#527

Merged
shadowislord merged 3 commits into
jMonkeyEngine:masterfrom
shamanDevel:OpenCL2
Jul 23, 2016
Merged

OpenCL for jME3 - some missing features#527
shadowislord merged 3 commits into
jMonkeyEngine:masterfrom
shamanDevel:OpenCL2

Conversation

@shamanDevel
Copy link
Copy Markdown
Contributor

Hi,
after working some time with the wrapper, I found three important missing features that improved the workflow once implemented.

  • missing toString() methods, useful for debugging
  • added getter method for the device in the command queue, necessary e.g. to query the work group size
  • the register() methods for the automatic garbage collection of OpenCL objects now returns this. This is important so that e.g. Buffer b = clContext.createBuffer(1).register(); can be written in one line

This allows to chain the register method like kernel=program.createKernel("ScaleKernel").register(); or testBuffer=clContext.createBuffer(1024).register();
@shadowislord shadowislord merged commit 4f41a28 into jMonkeyEngine:master Jul 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants