mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 14:25:37 +00:00
1aa7facda8
Stops unnecessary display recreation in big picture UI.
21 lines
624 B
C++
21 lines
624 B
C++
#pragma once
|
|
#include "core/shadergen.h"
|
|
#include "postprocessing_shader.h"
|
|
#include <sstream>
|
|
|
|
namespace FrontendCommon {
|
|
|
|
class PostProcessingShaderGen : public ShaderGen
|
|
{
|
|
public:
|
|
PostProcessingShaderGen(RenderAPI render_api, bool supports_dual_source_blend);
|
|
~PostProcessingShaderGen();
|
|
|
|
std::string GeneratePostProcessingVertexShader(const PostProcessingShader& shader);
|
|
std::string GeneratePostProcessingFragmentShader(const PostProcessingShader& shader);
|
|
|
|
private:
|
|
void WriteUniformBuffer(std::stringstream& ss, const PostProcessingShader& shader, bool use_push_constants);
|
|
};
|
|
|
|
} // namespace FrontendCommon
|