servo / webrender

A GPU-based renderer for the web
https://doc.servo.org/webrender/
Mozilla Public License 2.0
3.11k stars 276 forks source link

Use surfman instead of glutin #4010

Open jdm opened 4 years ago

jdm commented 4 years ago

I have a branch that converts all of the examples to rely on surfman instead of glutin in https://github.com/jdm/webrender/tree/surfman. Is this something that would be desirable?

jdm commented 4 years ago

cc @Hankszhang

kvark commented 4 years ago

What's the motivation here? What advantages/disadvantages do you see?

jdm commented 4 years ago

Perhaps rather than replacing the examples, it would be more useful to add one or two examples that demonstrate surfman integration. That would allow people interested in making use of webrender and surfman to have a simple model to follow, rather than having to read the entrails of Servo's complex setup.

Hankszhang commented 4 years ago

I have a branch that converts all of the examples to rely on surfman instead of glutin in https://github.com/jdm/webrender/tree/surfman. Is this something that would be desirable?

It helps a lot, thanks

Hankszhang commented 4 years ago

@jdm Is there a plan to ship more concrete docs? I found some api lack of description, or maybe I should learn some obvious concepts ==