2019-12-04 21:48:57 -07:00
|
|
|
// Copyright 2019 Dolphin Emulator Project
|
2021-07-04 19:22:19 -06:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2019-12-04 21:48:57 -07:00
|
|
|
|
2019-02-14 18:59:50 -07:00
|
|
|
#pragma once
|
2019-12-04 21:48:57 -07:00
|
|
|
|
2019-02-14 18:59:50 -07:00
|
|
|
#include <string>
|
2019-12-04 21:52:21 -07:00
|
|
|
#include "Common/CommonTypes.h"
|
2019-02-14 18:59:50 -07:00
|
|
|
|
|
|
|
enum class EFBReinterpretType;
|
2019-07-13 23:24:12 -06:00
|
|
|
enum class TextureFormat;
|
2019-02-14 18:59:50 -07:00
|
|
|
|
|
|
|
namespace FramebufferShaderGen
|
|
|
|
{
|
|
|
|
std::string GenerateScreenQuadVertexShader();
|
|
|
|
std::string GeneratePassthroughGeometryShader(u32 num_tex, u32 num_colors);
|
|
|
|
std::string GenerateTextureCopyVertexShader();
|
|
|
|
std::string GenerateTextureCopyPixelShader();
|
|
|
|
std::string GenerateResolveDepthPixelShader(u32 samples);
|
|
|
|
std::string GenerateClearVertexShader();
|
|
|
|
std::string GenerateEFBPokeVertexShader();
|
|
|
|
std::string GenerateColorPixelShader();
|
|
|
|
std::string GenerateFormatConversionShader(EFBReinterpretType convtype, u32 samples);
|
2019-07-13 23:24:12 -06:00
|
|
|
std::string GenerateTextureReinterpretShader(TextureFormat from_format, TextureFormat to_format);
|
2019-06-29 05:05:30 -06:00
|
|
|
std::string GenerateEFBRestorePixelShader();
|
2019-10-01 20:52:45 -06:00
|
|
|
std::string GenerateImGuiVertexShader();
|
|
|
|
std::string GenerateImGuiPixelShader();
|
2019-02-14 18:59:50 -07:00
|
|
|
|
|
|
|
} // namespace FramebufferShaderGen
|