2019-08-09 20:00:47 +02:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
2020-04-19 04:27:42 +02:00
|
|
|
#include <string_view>
|
2019-08-09 20:00:47 +02:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace OpenGL {
|
|
|
|
|
|
|
|
// Returns a vector of the names of the shaders available in the
|
|
|
|
// "shaders" directory in citra's data directory
|
|
|
|
std::vector<std::string> GetPostProcessingShaderList(bool anaglyph);
|
|
|
|
|
|
|
|
// Returns the shader code for the shader named "shader_name"
|
|
|
|
// with the appropriate header prepended to it
|
|
|
|
// If anaglyph is true, it searches the shaders/anaglyph directory rather than
|
|
|
|
// the shaders directory
|
|
|
|
// If the shader cannot be loaded, an empty string is returned
|
2020-04-19 04:27:42 +02:00
|
|
|
std::string GetPostProcessingShaderCode(bool anaglyph, std::string_view shader_name);
|
2019-08-09 20:00:47 +02:00
|
|
|
|
|
|
|
} // namespace OpenGL
|