Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCheck for EXT_debug_marker #2935
Conversation
|
Nice to see your PR, thank you! |
| @@ -71,16 +71,18 @@ pub struct GpuFrameProfile<T> { | |||
| samplers: QuerySet<GpuSampler<T>>, | |||
| frame_id: FrameId, | |||
| inside_frame: bool, | |||
| ext_debug_marker: bool | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| GpuFrameProfile { | ||
| gl, | ||
| timers: QuerySet::new(), | ||
| samplers: QuerySet::new(), | ||
| frame_id: FrameId::new(0), | ||
| inside_frame: false, | ||
| ext_debug_marker: ext_debug_marker |
This comment has been minimized.
This comment has been minimized.
| } | ||
| } | ||
|
|
||
| #[must_use] | ||
| pub struct GpuMarker { | ||
| gl: Rc<gl::Gl>, | ||
| ext_debug_marker: bool |
This comment has been minimized.
This comment has been minimized.
kvark
Jul 30, 2018
Member
The whole struct is rather useless without this extension. If the users can't make a decision not to use it at all, we might just make it gl: Option<Rc<gl::Gl>> here instead of adding a flag
|
Thank you! |
|
|
Check for EXT_debug_marker Fix for #2885 Sorry novice at contributing here. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/2935) <!-- Reviewable:end -->
|
|
|
Interestingly, with this PR I'm no longer see the markers. Checking |
|
Hmm, http://feedback.wildfiregames.com/report/opengl/feature/GL_EXT_debug_marker I don't know how accurate those stats are. But looks like this is only officially supported my mac os 10. The other one you purpose seems to be supported pretty much everywhere, http://www.g-truc.net/doc/OpenGL%204%20Hardware%20Matrix.pdf so that makes sense to move to this. |

csherratt commentedJul 28, 2018
•
edited by larsbergstrom
Fix for #2885
Sorry novice at contributing here.
This change is