Login  Register

Re: LongBuffers not supported?

Posted by Michael Bien on Apr 10, 2011; 8:51pm
URL: https://forum.jogamp.org/LongBuffers-not-supported-tp2800109p2803799.html

  fixed in:
https://github.com/mbien/jocl/commit/8a313c3240994d802af08673d095b0ec8ed69eac
builds should be available soon on the usual places.

-michael

On 04/09/2011 10:09 PM, Wibowit [via jogamp] wrote:

>
> I am trying to push a LongBuffer to GPU. IntBuffer or ByteBuffer works
> smoothly, but when I use LongBuffer then I experience an exception:
>
>
> run:
> Exception in thread "main" java.lang.RuntimeException: Unexpected buffer
> type java.nio.DirectLongBufferU
>          at com.jogamp.opencl.CLMemory.sizeOfBufferElem(CLMemory.java:100)
>          at com.jogamp.opencl.CLBuffer.create(CLBuffer.java:85)
>          at com.jogamp.opencl.CLContext.createBuffer(CLContext.java:367)
>          at com.jogamp.opencl.CLContext.createBuffer(CLContext.java:360)
>          at streampacker.Main.main(Main.java:42)
> Java Result: 1
> BUILD SUCCESSFUL (total time: 0 seconds)
>
> File Main.java: http://pastebin.com/7w5d7HaK
> File CLSetup.java: http://pastebin.com/RmpUG9xY
>
> Sorry, that I haven't reduced the sample to minimum. I'll download and try
> fresh devbuild now.