dolphin/Source/Core/VideoBackends/D3D/PixelShaderCache.h

35 lines
823 B
C
Raw Normal View History

// Copyright 2008 Dolphin Emulator Project
2015-05-17 23:08:10 +00:00
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include <d3d11.h>
#include <map>
2017-07-20 05:25:31 +00:00
#include "VideoCommon/AsyncShaderCompiler.h"
#include "VideoCommon/PixelShaderGen.h"
2017-07-20 05:25:31 +00:00
#include "VideoCommon/UberShaderPixel.h"
2011-09-08 00:09:44 +00:00
namespace DX11
{
2017-07-20 05:25:31 +00:00
class D3DBlob;
class PixelShaderCache
{
public:
static void Init();
static void Shutdown();
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();
};
} // namespace DX11