Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

OpenGL ES3 Half-float Textures?

Hello.


According to glGetString(GL_EXTENSIONS), iPhone 5s(OpenGLES3) seems supporting GL_EXT_color_buffer_half_float.

Then how can I create the half-float(16bit) per pixel as texture internal format?

I tried both codes as follows.

glTexImage2D(GL_TEXTURE_2D,0,GL_RGB16F,width,height,0,GL_RGB,GL_HALF_FLOAT,NULL) ;

glTexImage2D(GL_TEXTURE_2D,0,GL_RGBA16F,width,height,0,GL_RGBA,GL_HALF_FLOAT,NUL L);


and glGetError(); returns,"invalid enum".


In the following codes, program works but I think it's not the correct way.

glTexImage2D(GL_TEXTURE_2D,0,GL_RGB,width,height,0,GL_RGB,GL_HALF_FLOAT_OES,NULL );


Thanks,

iPhone 5s

Posted on Nov 4, 2013 9:07 PM

Reply

There are no replies.

OpenGL ES3 Half-float Textures?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.