Replies: 3 comments 2 replies
-
I believe the indended user-facing symbol is emscripten/src/library_webgl.js Lines 1848 to 1854 in 574f4f4 Does that symbol not work for you? |
Beta Was this translation helpful? Give feedback.
-
It looks like |
Beta Was this translation helpful? Give feedback.
-
This is correct. timer queries in WebGL are little bit awkward, because there are two separate extension versions depending on which core WebGL context version one initializes. In Emscripten we actually paper over this behavior, and fuse the functions into one.
This indeed is a mistake.
The naming convention here is a bit complex, and deserves a mention. For all WebGL extensions that define new functions, the function naming of the functions overlays on top of the existing GLES2/GLES3 function names for portability. So for example, ANGLE_instanced_arrays extension provides three functions
In the native GLES2/GLES3 world, the same types of extensions existed, with native
(The However, there are then some extensions that are unique to WebGL that there does not exist a corresponding native GLES2/GLES3 extension. Currently such extensions are: These come with new WebGL functions that don't exist in native GL/GLES. For example:
I did not want to step in to the existing native GL/GLES
since that would kind of confuse with the existing native specifications and make it read like it was an official core GL/GLES thing. So for these functions, I opted to go for the naming scheme
for WebGL 1 and WebGL 2 extensions and these extensions will be available by a The EXT_disjoint_timer_query_webgl2 extension brings a new function, so that is probably why I had written a declaration of a function However, the implementation of that function was actually merged into the general |
Beta Was this translation helpful? Give feedback.
-
Hi,
I've been trying to profile a webgl2 renderer that compiles with emscripten. I found the header file containing all the necessary defines as well as a prototype function for emscripten_webgl2_queryCounterEXT. However, when I try to use this function I get an "undefined symbol" error. If anyone has any idea as to what I need to do to make this link correctly I would be very grateful.
Beta Was this translation helpful? Give feedback.
All reactions