2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-18 01:08:10 +02:00
|
|
|
// Licensed under GPLv2+
|
2013-04-17 23:29:41 -04:00
|
|
|
// Refer to the license.txt file included.
|
2010-06-13 19:50:06 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2011-01-25 16:43:08 +00:00
|
|
|
#include <d3d11.h>
|
2014-02-19 12:14:09 +01:00
|
|
|
#include <map>
|
2011-01-25 16:43:08 +00:00
|
|
|
|
2017-07-20 15:25:31 +10:00
|
|
|
#include "VideoCommon/AsyncShaderCompiler.h"
|
2014-02-17 05:18:15 -05:00
|
|
|
#include "VideoCommon/PixelShaderGen.h"
|
2017-07-20 15:25:31 +10:00
|
|
|
#include "VideoCommon/UberShaderPixel.h"
|
2011-09-08 02:09:44 +02:00
|
|
|
|
2011-01-31 01:28:32 +00:00
|
|
|
namespace DX11
|
|
|
|
{
|
2017-07-20 15:25:31 +10:00
|
|
|
class D3DBlob;
|
|
|
|
|
2010-06-13 19:50:06 +00:00
|
|
|
class PixelShaderCache
|
|
|
|
{
|
|
|
|
public:
|
2016-06-24 10:43:46 +02:00
|
|
|
static void Init();
|
|
|
|
static void Shutdown();
|
|
|
|
|
2017-07-20 15:25:31 +10:00
|
|
|
static ID3D11Buffer* GetConstantBuffer();
|
2016-06-24 10:43:46 +02:00
|
|
|
|
|
|
|
static ID3D11PixelShader* GetColorCopyProgram(bool multisampled);
|
|
|
|
static ID3D11PixelShader* GetClearProgram();
|
|
|
|
static ID3D11PixelShader* GetAnaglyphProgram();
|
|
|
|
static ID3D11PixelShader* GetDepthResolveProgram();
|
|
|
|
static ID3D11PixelShader* ReinterpRGBA6ToRGB8(bool multisampled);
|
|
|
|
static ID3D11PixelShader* ReinterpRGB8ToRGBA6(bool multisampled);
|
|
|
|
|
|
|
|
static void InvalidateMSAAShaders();
|
2010-06-13 19:50:06 +00:00
|
|
|
};
|
2011-01-29 20:16:51 +00:00
|
|
|
|
2011-01-31 01:28:32 +00:00
|
|
|
} // namespace DX11
|