2016-01-08 03:40:35 +00:00
|
|
|
// Copyright 2015 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2016-06-24 11:14:10 +00:00
|
|
|
#include "VideoBackends/D3D12/D3DBase.h"
|
|
|
|
|
2016-01-08 03:40:35 +00:00
|
|
|
namespace DX12
|
|
|
|
{
|
|
|
|
class StaticShaderCache final
|
|
|
|
{
|
|
|
|
public:
|
2016-06-24 08:43:46 +00:00
|
|
|
static void Init();
|
|
|
|
static void InvalidateMSAAShaders();
|
|
|
|
static void Shutdown();
|
2016-01-08 03:40:35 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// Pixel shaders
|
|
|
|
static D3D12_SHADER_BYTECODE GetColorMatrixPixelShader(bool multisampled);
|
|
|
|
static D3D12_SHADER_BYTECODE GetColorCopyPixelShader(bool multisampled);
|
|
|
|
static D3D12_SHADER_BYTECODE GetDepthMatrixPixelShader(bool multisampled);
|
|
|
|
static D3D12_SHADER_BYTECODE GetDepthResolveToColorPixelShader();
|
|
|
|
static D3D12_SHADER_BYTECODE GetClearPixelShader();
|
|
|
|
static D3D12_SHADER_BYTECODE GetAnaglyphPixelShader();
|
|
|
|
static D3D12_SHADER_BYTECODE GetReinterpRGBA6ToRGB8PixelShader(bool multisampled);
|
|
|
|
static D3D12_SHADER_BYTECODE GetReinterpRGB8ToRGBA6PixelShader(bool multisampled);
|
|
|
|
static D3D12_SHADER_BYTECODE GetXFBEncodePixelShader();
|
|
|
|
static D3D12_SHADER_BYTECODE GetXFBDecodePixelShader();
|
2016-01-08 03:40:35 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// Vertex shaders
|
|
|
|
static D3D12_SHADER_BYTECODE GetSimpleVertexShader();
|
|
|
|
static D3D12_SHADER_BYTECODE GetClearVertexShader();
|
|
|
|
static D3D12_INPUT_LAYOUT_DESC GetSimpleVertexShaderInputLayout();
|
|
|
|
static D3D12_INPUT_LAYOUT_DESC GetClearVertexShaderInputLayout();
|
2016-01-08 03:40:35 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// Geometry shaders
|
|
|
|
static D3D12_SHADER_BYTECODE GetClearGeometryShader();
|
|
|
|
static D3D12_SHADER_BYTECODE GetCopyGeometryShader();
|
2016-01-08 03:40:35 +00:00
|
|
|
};
|
|
|
|
}
|