Login  Register

Re: upcoming semantical change for buffer operations

Posted by Michael Bien on Mar 14, 2011; 7:26pm
URL: https://forum.jogamp.org/upcoming-semantical-change-for-buffer-operations-tp2519021p2680469.html

  no it isn't changed yet i am still experimenting with various options.

if you are using some kind of interleaved data you could just use a
CLBuffer<ByteBuffer> and you could address the elements with byte offsets.

semantics of CLBuffer<ByteBuffer> and CLBuffer<?> would not change only
the other types would.

-michael


On 03/14/2011 08:20 PM, Wibowit [via jogamp] wrote:
> What about a situation where buffer contains interleaved data of different
> types? Using byte offsets would make more sense there.
>
> If your semantic changes aren't consistent and we would have to mix elements
> with bytes then I'm against that changes. Primitives in Java have always the
> same size, no matter what the platform or Java version number, so we can
> even not use constants but literals, ie instead of offset * SizeofFloat, we
> can use offset * 4.
>
> Did you change the semantic already?
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://forum.jogamp.org/upcoming-semantical-change-for-buffer-operations-tp2519021p2677024.html
> To start a new topic under jogamp, email ml-node+762907-380265080-8131@n3.nabble.com
> To unsubscribe from jogamp, visit http://forum.jogamp.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=762907&code=YmllbmF0b3JAYXJjb3IuZGV8NzYyOTA3fDQxNTEwMDY0OA==

--
http://michael-bien.com/