Login  Register

Re: ShaderCode throws "Unknown shader type: 36313" with GEOMETRY_SHADER

Posted by Sven Gothel on Dec 23, 2012; 1:16pm
URL: https://forum.jogamp.org/ShaderCode-throws-Unknown-shader-type-36313-with-GEOMETRY-SHADER-tp4027631p4027632.html

On 12/23/2012 01:45 PM, bananafish [via jogamp] wrote:

> When using code similar to this:
>
> GL4 gl = ....
> ShaderCode gs = new ShaderCode(GL4.GL_GEOMETRY_SHADER,1,shaderSourceString);
>
>
> ... I get the following exception:
>
> java.lang.Exception: Unknown shader type: 36313
>
>
> However using GL_FRAGMENT_SHADER and GL_VERTEX_SHADER do indeed work properly.
>
> Is GEOMETRY_SHADER not supported in ShaderCode class?
Sorry, yes.

We can add support for it - maybe you have a little test snippet w/ geom shader ?

We will add geom support, however if you can do that it would be great.
Will merge your work when done.

~Sven



signature.asc (909 bytes) Download Attachment