mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
35 lines
823 B
C++
35 lines
823 B
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <d3d11.h>
|
|
#include <map>
|
|
|
|
#include "VideoCommon/AsyncShaderCompiler.h"
|
|
#include "VideoCommon/PixelShaderGen.h"
|
|
#include "VideoCommon/UberShaderPixel.h"
|
|
|
|
namespace DX11
|
|
{
|
|
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
|