Override aspect ratio and stretches the image to the full display area
Could you elaborate?
To override aspect ratio and stretches the image to the full display area
The default aspect ratio is the switch's (which is 16:9). Stretching the image would deteriorate the image quality substantially (depending on how far from 16:9 your monitor aspect ratio is). Most of our userbase uses yuzu on a 1080p 1920x1080 monitor (or a down scaling of that) -- which is 16:9.
Though not much users here are using 21:9 monitor and would be nice to have it stretch to full screen to get rid of the two sides black bar . Similar to the option in cemu and rpcs3 (https://github.com/RPCS3/rpcs3/pull/2961) .
TL;DR : Correct me if I'm wrong but...
It seems to me @niko1point0 is talking about changing aspect ratios internally whereas @raven02 seems talking about stretching the final product to fit the screen size.
The long version :
I don't follow yuzu or citra well enough to know how or where you've set up the display area code but the latter is "probably" not a substantial change. The former would be hackish no matter how it was implemented.
I used quotes because I follow yuzu to appease my interest in emulation and how technology works. I don't actually use yuzu myself. However, If you can use the emulator windowed and resize that window arbitrarily you've dictated how that happens somewhere in your code, otherwise it would fill the whole window and there would be no black bars.
If you refer to the pull request raven mentioned you'll see it added a config option that simply disables some code when true, reverting the renderer to a more natural state.
As a preferrer of stretched graphics instead of black bars I wish you the best of luck should you choose to look for a solution.
While I can't speak on Raven and Relsig's behalf, I'm fairly certain they do understand the effect stretching will have on the image quality. There is a somewhat significant group of people that don't mind the distortion that stretching causes, and in fact prefer it over black bars. That's why the option to ignore aspect ratios is present in most Media Players, Emulators and Televisions/Monitors in the first place.
I'm not personally a fan of stretching either, but I don't see much of an issue with adding it as an option. Also enabling screen stretching is a prerequisite step when using widescreen cheats on pretty much all emulators. So while it wouldn't be automatic, once stretching is supported somebody could come along and create hacks or cheats that corrects the aspect ratio for specific games.
@EliEron it seems like you do understand raven's intent. Using cheat engine you can modify the aspect ratio with a high probability of success, without bulking up the emulator's code. Unfortunately being able to fill the display area is a requirement to make that modification work. This is the route Raven will most likely take.
You are also correct in assuming a substantial minority of people do prefer warped objects over black bars, myself included. The option shouldn't be terribly hard to implement for someone who understands the internal workings of the display area code, it's simply a matter of finding the right dev and waiting for them to have some spare time.
Modern GPUs do not manage projection or modelview matrices anymore. In particular, Switch's Nvidia Maxwell GPU most common float-point instructions don't even handle vectors (I don't consider half-float SIMD instructions common). We can't know what is a color, what is a normal, what's a projection matrix or what's a skeleton weight: in the shader it's all memory reads, stores and operations. Emulators for older consoles approach to change aspect ratios and resolution changes are not applyable to Switch emulation.
What other modern console emulators have done (e.g. Cemu) is to have a relatively stable interface for modders to use that manually change shaders and texture layouts on a per-game basis. This way game's internal resolution can be changed with some work. Once the internal resolution problem is solved, presenting to a different screen size as a final step is an easy change to do.
One little detail I'd like to clarify: glm:: functions are very likely going to be inlined by whatever compiler game developers use on deployment (probably clang), so those functions are lost.
In the meantime, I'm against stretching the final image. If black bars really bother, remember the monitor showing yuzu very likely has borders too.
I think raven understands that changing aspect ratios internally is a big ask. His request seems to simply be, as you said, the option (in yuzu's settings) to present to a different screen size. I believe this is why he chose the title he chose.
Given the amazing developers working on Yuzu I'm sure in the distant future an interface to change textures and shaders will happen but I don't believe that is what this request was made for.
This is possible in Citra so I'm not sure why an option for this isn't present in yuzu.
Ultrawide hacks are a thing (pixelated/blurry since resolution scaling was removed):

https://ptb.discordapp.com/channels/398318088170242053/402001453381713920/590289681170563082


Update: For anyone that can build yuzu and wants to have the screen stretched, here's how:
Change https://github.com/yuzu-emu/yuzu/blob/master/src/core/frontend/framebuffer_layout.cpp#L30-#L31
const float emulation_aspect_ratio{static_cast<float>(ScreenUndocked::Height) /
ScreenUndocked::Width};
to
const float emulation_aspect_ratio = static_cast<float>(height) / width;

Most helpful comment
While I can't speak on Raven and Relsig's behalf, I'm fairly certain they do understand the effect stretching will have on the image quality. There is a somewhat significant group of people that don't mind the distortion that stretching causes, and in fact prefer it over black bars. That's why the option to ignore aspect ratios is present in most Media Players, Emulators and Televisions/Monitors in the first place.
I'm not personally a fan of stretching either, but I don't see much of an issue with adding it as an option. Also enabling screen stretching is a prerequisite step when using widescreen cheats on pretty much all emulators. So while it wouldn't be automatic, once stretching is supported somebody could come along and create hacks or cheats that corrects the aspect ratio for specific games.