summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/PostProcessing.cpp
AgeCommit message (Collapse)Author
2019-12-29Use std::istringstream or std::ostringstream instead of std::stringstream ↵David Korth
where possible. This removes std::iostream from the inheritance chain, which reduces overhead slightly.
2019-11-23VideoCommon: Make use of fmt outside of shader generatorsLioncash
Migrates most of VideoCommon over to using fmt, with the exception being the shader generator code. The shader generators are quite large and have more corner cases to deal with in terms of conversion (shaders have braces in them, so we need to make sure to escape them). Because of the large amount of code that would need to be converted, the conversion of VideoCommon will be in two parts: - This change (which converts over the general case string formatting), - A follow up change that will specifically deal with converting over the shader generators.
2019-10-02PostProcessing: Use interface blocks for shadersStenzek
2019-10-02Renderer: Draw ImGui interface to both eyesStenzek
2019-10-02PostProcessing: Use correct layer in quad-buffered modesStenzek
Previously, only the left eye was being used.
2019-10-02PostProcessing: Don't use GS expansion shader for quad buffering w/ OpenGLStenzek
OpenGL doesn't render to a 2-layer backbuffer like D3D/Vulkan for quad-buffered stereo, instead drawing twice with the eye selected by glDrawBuffer() (see OGL::Renderer::RenderXFBToScreen).
2019-07-23StringUtil: Use std::string_view moreJosJuice
2019-07-16VideoCommon: Remove unused MathUtil.h include from VideoCommon.hLioncash
This header doesn't actually make use of MathUtil.h within itself, so this can be removed. Many other source files used VideoCommon.h as an indirect include to include MathUtil.h, so these includes can also be adjusted. While we're at it, we can also migrate valid inclusions of VideoCommon.h into cpp files where it can feasibly be done to minimize propagating it via other headers.
2019-05-04VideoCommon: Implement passive stereoscopic 3Diwubcode
2019-04-30Remove redundant initializationFilip Gawin
2019-02-19Move most backend functionality to VideoCommonStenzek
2019-02-13Use empty instead of sizeFilip Gawin
2018-05-21PostProcessing: Default constructor and destructor of ↵Lioncash
PostProcessingShaderConfiguration Also ensure that all members of the class are initialized on construction as well. Previously the bool indicating if options are dirty wouldn't be initialized, which could be read uninitialized if an instance was constructed and then IsDirty() is called.
2017-11-18VideoConfig: Make StereoMode an enum classLioncash
Makes for more strongly-typed identifiers (and doesn't pollute surrounding namespaces)
2017-06-23replace DoFileSearch with optimized versionShawn Hoffman
2017-04-25VideoConfigDiag: Move post-processing shader list to post processorStenzek
The backends don't use this list at all, and since more than one backend supports post-processing now, it's duplicate code.
2016-06-24Reformat all the things. Have fun with merge conflicts.Pierre Bourdon
2016-01-17VideoCommon: Header cleanupLioncash
Also remedies places where the video backends and core rely on things being indirectly included.
2015-05-28Pass strings by const reference where possibleLioncash
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-02-04Use emplace_* functions where in-place construction is preferableLioncash
2015-01-25PostProcessing: Move default pixel shader to PostProcessingShaderConfiguration.Jules Blok
Reduces code complexity and fixes a bug where the shader is not properly invalidated.
2015-01-25PostProcessing: Add support for user-supplied anaglyph shaders.Jules Blok
There are lots of different anaglyph glasses out there and there may be even more creative uses for stereoscopic post-processing shaders.
2015-01-20Fix the Post Processing shader configuration dialog.Ryan Houdek
On locales that don't use period as a separator this would break us. For vector values in a configuration, we use comma as a separator which causes the configuration to balloon to massive sizes due to never saving them correctly. Loading would then break since it would load a million configuration options. Fixes issue #7569.
2014-08-25Revert "Catch broken configurations inside of the Post Processing shaders."Pierre Bourdon
2014-08-17Catch broken configurations inside of the Post Processing shaders.Ryan Houdek
This catches most instances of configuration failures that can happen in a post processing shader. Gives a user a helpful error message that lets them know what they have failed to set up correctly
2014-08-13Add the VideoCommon PostProcessing class.Ryan Houdek
This class loads all the common PP shader configuration options and passes those options through to a inherited class that OpenGL or D3D will have. Makes it so all the common code for PP shaders is in VideoCommon instead of duplicating the code across each backend.