Login  Register

Re: Bindless vertex array

Posted by Sven Gothel on Apr 20, 2015; 4:07pm
URL: https://forum.jogamp.org/Bindless-vertex-array-tp4034343p4034344.html

On 04/20/2015 05:14 PM, elect [via jogamp] wrote:

> I am trying to render vertices in bindless mode
>
> I create each mesh and get their 64b vertex array pointer
>
> https://github.com/elect86/NvGlSamples/blob/master/NvGlSamples/src/nvGlSamples/bindlessApp/util/Mesh.java#L80
>
> Then, before the mesh.render() I set the attributes, enable it and its client
> state
>
> https://github.com/elect86/NvGlSamples/blob/master/NvGlSamples/src/nvGlSamples/bindlessApp/util/Mesh.java#L115-140
>
> and in the mesh.render() I set up the pointers to the vertices attributes
>
> https://github.com/elect86/NvGlSamples/blob/master/NvGlSamples/src/nvGlSamples/bindlessApp/util/Mesh.java#L186-188
>
> and then finally render
>
> But I get this at the glDrawElements
>
> Caused by: com.jogamp.opengl.GLException: element vertex_buffer_object must be
> bound to call this method
>         at jogamp.opengl.gl4.GL4bcImpl.checkBufferObject(GL4bcImpl.java:39146)
>         at jogamp.opengl.gl4.GL4bcImpl.checkElementVBOBound(GL4bcImpl.java:39197)
>         at jogamp.opengl.gl4.GL4bcImpl.glDrawElements(GL4bcImpl.java:5440)
>         at nvGlSamples.bindlessApp.util.Mesh.render(Mesh.java:223)
>
> I guess (hope) this is a bug of jogl that doesnt take in account the bindless
> rendering and requires a vbo in anycase.. or?
This is possible, AFAIK we had a bug fix in this regard.
Maybe similar to your other issue?
Can you create a unit test?
I have to see whether I can sneak this in these days,
otherwise it has to wait 1-2 weeks.
Surely this is a high prio bug.

~Sven



signature.asc (828 bytes) Download Attachment