LWJGL / lwjgl3

LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan, bgfx), audio (OpenAL, Opus), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR, OpenXR) applications.
https://www.lwjgl.org
BSD 3-Clause "New" or "Revised" License
4.67k stars 628 forks source link

Binding bug on glXGetGPUIDsAMD() in GLXAMDGPUAssociation #988

Open SpartanB312 opened 2 weeks ago

SpartanB312 commented 2 weeks ago

Question

As the title described. The method's parameter are 'int maxCount' and 'int ids but in [https://registry.khronos.org/OpenGL/extensions/AMD/GLX_AMD_gpu_association.txt] The parameters are 'unsigned int maxCount' and 'unsigned int *ids'.

There is another implementation in java: [https://github.com/mattprice28/Cardiff-University/blob/4d3a9bcb9e9624f9c1c380504bb749580f1c4537/Year%203/CM3114/jogamp-all-platforms/jogamp/opengl/x11/glx/GLXExtImpl.java#L59] They use IntBuffer to return ids.

So, how can I get returned ids in LWJGL3?

Spasi commented 2 weeks ago

Hey @SpartanB312,

It's a bug in the bindings, will be fixed in the next 3.3.4 snapshot.