How to enable ES 3.0 in ANGLE

194 views
Skip to first unread message

Rishi Ranjan

unread,
Jan 13, 2015, 4:27:39 PM1/13/15
to anglep...@googlegroups.com
Hi,
    I have successfully compiled ANGLE and am able to play with samples but when I query the GL_VERSION, it returns 'OpenGL ES 2.0 (ANGLE 2.1.b'')'. I understand that 3.0 support is not complete but most of the features are working so I want to force the ANGLE in ES 3.0 mode. I will make sure not to use ETC2. 

Is there a simple config parameter which can force it to ES 3.0? I did check the code and client version is being checked against 2.0 and 3.0 so there should be a way to do this. 


Also I am trying to use ANGLE to test Instanced rendering in Android Emulator. In code, it's marked as not supported. Can I reuse GL_ANGLE_instanced_arrays to implement OpenGL ES 3.0 instanced rendering. In code I see that DrawElementsInstanced has a UNIMPLEMENTED();

Thanks,
Rishi

Shannon Woods

unread,
Jan 13, 2015, 4:36:16 PM1/13/15
to anglep...@googlegroups.com
Hi Rishi,

Two questions: 
  * How are you obtaining your GLES context? A ES 3.0 context should be requestable via eglCreateContext by using an EGL_CONTEXT_CLIENT_VERSION of 3 in the attrib list.
  * Are you running ANGLE on a D3D10+ capable system? ES 3.0 support is not available in ANGLE on our D3D9 backend.

Rishi Ranjan

unread,
Jan 13, 2015, 4:47:22 PM1/13/15
to shanno...@chromium.org, anglep...@googlegroups.com
Hi Shannon,
                 I was trying to change simple_instancing example first to see if OpenGL ES support is returned in GL_STRING and get the Instancing working with this example before trying this with Android emulator. I will change the code to request ES 3.0 . 
using eglCreateContext. 

My PC has DirectX 11. 


Can you please provide your input on adding Instancing support in ANGLE. I am copying the question from my last mail: 
 I am trying to use ANGLE to test Instanced rendering in Android Emulator. In code, it's marked as not supported. Can I reuse GL_ANGLE_instanced_arrays to implement OpenGL ES 3.0 instanced rendering. In code I see that DrawElementsInstanced has a UNIMPLEMENTED();

Thanks,
Rishi

--
You received this message because you are subscribed to a topic in the Google Groups "angleproject" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angleproject/lyOP4Sv3TO4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angleproject...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jamie Madill

unread,
Jan 13, 2015, 4:52:18 PM1/13/15
to rishi....@gmail.com, shanno...@chromium.org, anglep...@googlegroups.com
Worth noting: we recently (just today) had an external contributor add DrawElementsInstanced support in this CL:


--
You received this message because you are subscribed to the Google Groups "angleproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angleproject...@googlegroups.com.

Shannon Woods

unread,
Jan 13, 2015, 5:01:03 PM1/13/15
to anglep...@googlegroups.com, rishi....@gmail.com, shanno...@chromium.org
(That CL also includes DrawArraysInstanced, I think.)

The one remaining bit of instancing support for ES 3.0 still missing from ANGLE, after that CL, is VertexID/InstanceID built-ins in the shading language, so be aware that if your application uses those, they are not yet supported

Rishi Ranjan

unread,
Jan 13, 2015, 5:12:56 PM1/13/15
to Shannon Woods, anglep...@googlegroups.com
Thanks for pointing me to this CL. I will merge these changes and use it for now. My application is not using VertexID/InstanceID in vertex shader so this should be good enough for me. 

Thanks,
Rishi
Reply all
Reply to author
Forward
0 new messages