Allright thanks.

I've added support for SSBO, but haven't finished glMemoryBarrier yet.

I've looked at this (
https://github.com/openscenegraph/osg/commit/160a7a5c674615a4119b6022e31d7e4cdcb84f7e)
commit which added support for compute shaders.
I don't really understand why the functionality is so split between
GL2Extensions and Texture. Why not add the new tokens and BindImageTexture
to GL2Extensions instead of Texture?
The reason I'm conflicted is that I'm not sure if I should add
MemoryBarrier to GL2Extensions, or if it should be placed in another
location.

Any advice or guidance would be greatly appreciated,
Sverre


On Tue, Nov 18, 2014 at 10:48 AM, Robert Osfield <[email protected]>
wrote:

> HI Sverre,
>
> The OSG-3.2 predates the shader storage buffer object extension so won't
> be support.
>
> The OSG-trunk doesn't yet have support either, but it might be possible to
> add prior to creating the OSG-3.4 branch - and you'd be welcome to have a
> bash.  Looking at the OpenGL extension specs:
>
> https://www.opengl.org/registry/specs/ARB/shader_storage_buffer_object.txt
>
> It looks like new enums will be needed, but most of the original buffer
> object setup should work.  In the spec there is also use of the
> glMemoryBarrier that the OSG doesn't yet wrap so one might be need to look
> at adding this to GL2Extensions.
>
> Robert.
>
> Robert.
>
> On 17 November 2014 16:30, Sverre Aleksandersen <
> [email protected]> wrote:
>
>> Hi,
>>
>> I'm wondering whether shader storage buffer objects are available in OSG.
>> So far I've only looked at OSG 3.2.1. As far as I can tell this buffer
>> object is not available in this version, please correct me if I'm wrong.
>>
>> Is there any plans in implementing it? If not, I might be interested in
>> giving it a go myself.
>> As far as I can tell, changes would at least be necessary in
>> GL2Extensions and maybe BufferObject.
>>
>> Thank you!
>>
>> Cheers,
>> Sverre
>>
>> ------------------
>> Read this topic online here:
>> http://forum.openscenegraph.org/viewtopic.php?p=61656#61656
>>
>>
>>
>>
>>
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to