post_processing_opengl.h
1 // Copyright 2014 Citra Emulator Project 2 // Licensed under GPLv2 or any later version 3 // Refer to the license.txt file included. 4 5 #pragma once 6 7 #include <string> 8 #include <string_view> 9 #include <vector> 10 11 namespace OpenGL { 12 13 // Returns a vector of the names of the shaders available in the 14 // "shaders" directory in citra's data directory 15 std::vector<std::string> GetPostProcessingShaderList(bool anaglyph); 16 17 // Returns the shader code for the shader named "shader_name" 18 // with the appropriate header prepended to it 19 // If anaglyph is true, it searches the shaders/anaglyph directory rather than 20 // the shaders directory 21 // If the shader cannot be loaded, an empty string is returned 22 std::string GetPostProcessingShaderCode(bool anaglyph, std::string_view shader_name); 23 24 } // namespace OpenGL