OpenGL / OpenCL 与 LWJGL 共享
我在 LWJGL 中找不到太多有关 OpenCL Java 实现的信息。例如 device.isSharingSupported 不在 LWJGL 中,或者没有以通常的方式实现。谁能详细说明一下吗?
所以我有兴趣与 opengl 共享来自 opencl 的纹理/顶点。 切换到 JOGL 是否明智?
I can not find much about the OpenCL Java implementation in LWJGL. For instance device.isSharingSupported is not in LWJGL, or not implemented in the usual way for that matter. Can anyone elaborate on this?
So I'm interested in sharing textures / vertices from opencl with opengl.
Would it be wise to switch to JOGL?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是在 LWJGL 中查询支持 KHR_gl_sharing 的 CLDevice 的方式:
请参阅 LWJGL 测试包中的 org.lwjgl.test.opencl.gl.DemoFractal 以获取完整示例。您还可以查看源代码 这里。
This is how you'd query the CLDevices that support KHR_gl_sharing in LWJGL:
See org.lwjgl.test.opencl.gl.DemoFractal in LWJGL's test package for a complete example. You can also see the source here.