• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 43 44 45 46 47 ... 117 Next »

[Linux, OpenGL 4] How are you devs setting/using OpenGL?
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
[Linux, OpenGL 4] How are you devs setting/using OpenGL?
03-24-2014, 05:30 PM
#2
delroth Offline
Making the world a better place through reverse engineered DSP firmwares
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,354
Threads: 63
Joined: Aug 2011
I'll let HdkR reply more in details to these questions (as he is the author of GLExtensions), but from my understanding:

1) GLExtensions is a way to do the GL functions lookup at runtime instead of compile time. The main point of it is to be able to generate a binary that works on both GL and GL ES. This means we do not link to libGL directly at compile time, but instead we lookup the symbols from libGL at runtime.

2) As explained, no GL linking at compile time.

3) If I remember correctly, GLEW has no support for ES, and even less support for ES and normal GL in the same binary.

4) I think we also use ES for desktop versions running on ARM (Chromebook, for example), but that's a very marginal scenario. We almost only use core GL on desktop, but we want to have support for ES as well.

Now, for the more general questions:

5) We accumulate vertices/primitives as long as we can. Then, when a change is made to the emulated GPU pipeline that requires changes to the host GPU pipeline (GL settings, shader, etc.) we flush all the vertices/primitives we currently have accumulated to the GPU with the current pipeline state, and we perform the pipeline state change. So it is not predictable how many vertices/triangles are going to be sent per batch.

6) The most important shaders are the one generated by VertexShaderGen.cpp and PixelShaderGen.cpp. These files contain functions that generate shaders based on the current emulated GPU pipeline state. These shaders are generated at runtime and switched depending on pipeline state changes.

If you have further questions, you can also join us on #dolphin-dev @ freenode, it might make things quicker.
Pierre "delroth" Bourdon - @delroth_ - Blog

<@neobrain> that looks sophisticated enough to not be a totally dumb thing to do
Website Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
[Linux, OpenGL 4] How are you devs setting/using OpenGL? - Katastic Voyage - 03-24-2014, 05:04 AM
RE: [Linux, OpenGL 4] How are you devs setting/using OpenGL? - delroth - 03-24-2014, 05:30 PM
RE: [Linux, OpenGL 4] How are you devs setting/using OpenGL? - Sonicadvance1 - 03-24-2014, 08:36 PM
RE: [Linux, OpenGL 4] How are you devs setting/using OpenGL? - pauldacheez - 03-25-2014, 05:57 AM
RE: [Linux, OpenGL 4] How are you devs setting/using OpenGL? - Katastic Voyage - 03-25-2014, 09:42 AM
RE: [Linux, OpenGL 4] How are you devs setting/using OpenGL? - Sonicadvance1 - 03-25-2014, 04:12 PM
RE: [Linux, OpenGL 4] How are you devs setting/using OpenGL? - Katastic Voyage - 03-30-2014, 07:29 AM
RE: [Linux, OpenGL 4] How are you devs setting/using OpenGL? - degasus - 03-30-2014, 10:56 AM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 2 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode