Merge pull request #8509 from lioncash/shader-str

VideoCommon/FramebufferShaderGen: Minor clean up
This commit is contained in:
Anthony
2019-12-07 18:40:56 -08:00
committed by GitHub
2 changed files with 187 additions and 179 deletions
File diff suppressed because it is too large Load Diff
+6 -14
View File
@@ -1,25 +1,17 @@
// Copyright 2019 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include <string>
#include "VideoCommon/VideoCommon.h"
#include "Common/CommonTypes.h"
enum class EFBReinterpretType;
enum class TextureFormat;
namespace FramebufferShaderGen
{
struct Config
{
Config(APIType api_type_, u32 efb_samples_, u32 efb_layers_, bool ssaa_)
: api_type(api_type_), efb_samples(efb_samples_), efb_layers(efb_layers_), ssaa(ssaa_)
{
}
APIType api_type;
u32 efb_samples;
u32 efb_layers;
bool ssaa;
};
std::string GenerateScreenQuadVertexShader();
std::string GeneratePassthroughGeometryShader(u32 num_tex, u32 num_colors);
std::string GenerateTextureCopyVertexShader();