Re: JOCL texture generation
Posted by
fifty on
Mar 19, 2014; 2:27pm
URL: https://forum.jogamp.org/JOCL-texture-generation-tp4031853p4031978.html
Hi Wade,
great! You are right, GLSL version 150 requires "texture" instead of "texture2D".
But the problem initially and still is "createFromGLTexture2D".
OpenCL 1.0 Specification says
http://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/clCreateFromGLTexture2D.html"texture : .. Only GL texture objects with an internal format that maps to appropriate image channel order and data type specified in the table of supported Image Channel Order Values and the table of supported Image Channel Data Types at cl_image_format may be used to create a 2D image object. "
Perhaps should try some different format than GL_RGBA, GL_UNSIGNED_BYTE with GL!
It is strange that Intel and NVidia platform show the same unknown error code!