glutin icon indicating copy to clipboard operation
glutin copied to clipboard

EGL: Provide color-space support

Open MarijnS95 opened this issue 2 years ago • 2 comments

Closes #1653

Still a few things to do, such as:

  • [ ] writing a commit message;
  • [ ] addressing TODOs;
  • [ ] deciding where to go with EglSurfaceAttributes since it's so easy to get wrong;
  • [ ] Remove unneeded changes from the example.

MarijnS95 avatar Dec 21 '23 23:12 MarijnS95

Do you want me to look into something specific here given that you have it as a draft and have a bunch of debug in the code?

kchibisov avatar Feb 07 '24 19:02 kchibisov

@kchibisov sure the example used to contain a full setup for using EGL HDR color spaces.

As this is "the only" example in glutin I surely feel that shouldn't immediately expose the user to a completely EGL-specific color space setup, especially if we don't even go to lengths to use the right colors in other spaces. I've now dropped that from this PR. If you think we should, I could always reintroduce it as a separate example app (though wouldn't wish to duplicate 90% of the current example... :sweat_smile:).

This PR still contains some drive-by ideas to make it easier to work with "HDR" surfaces, such as maybe making it more straightforward to create a ConfigTemplateBuilder for different "popular" formats?

MarijnS95 avatar Jun 11 '24 20:06 MarijnS95