2015-05-24 07:55:12 +03:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-18 02:08:10 +03:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 06:29:41 +03:00
|
|
|
// Refer to the license.txt file included.
|
2010-06-13 22:50:06 +03:00
|
|
|
|
2014-02-10 20:54:46 +02:00
|
|
|
#pragma once
|
2010-06-13 22:50:06 +03:00
|
|
|
|
2014-02-17 12:18:15 +02:00
|
|
|
#include <map>
|
2010-06-13 22:50:06 +03:00
|
|
|
|
2014-02-17 12:18:15 +02:00
|
|
|
#include "VideoBackends/D3D/D3DBase.h"
|
|
|
|
#include "VideoBackends/D3D/D3DBlob.h"
|
2011-01-25 18:43:08 +02:00
|
|
|
|
2017-07-20 08:25:31 +03:00
|
|
|
#include "VideoCommon/AsyncShaderCompiler.h"
|
|
|
|
#include "VideoCommon/UberShaderVertex.h"
|
2014-02-17 12:18:15 +02:00
|
|
|
#include "VideoCommon/VertexShaderGen.h"
|
2011-01-25 18:43:08 +02:00
|
|
|
|
2016-06-24 11:43:46 +03:00
|
|
|
namespace DX11
|
|
|
|
{
|
2017-07-20 08:25:31 +03:00
|
|
|
class D3DVertexFormat;
|
|
|
|
|
2010-06-13 22:50:06 +03:00
|
|
|
class VertexShaderCache
|
|
|
|
{
|
|
|
|
public:
|
2016-06-24 11:43:46 +03:00
|
|
|
static void Init();
|
|
|
|
static void Shutdown();
|
2011-01-24 13:57:17 +02:00
|
|
|
|
2016-06-24 11:43:46 +03:00
|
|
|
static ID3D11Buffer*& GetConstantBuffer();
|
2010-06-13 22:50:06 +03:00
|
|
|
|
2016-06-24 11:43:46 +03:00
|
|
|
static ID3D11VertexShader* GetSimpleVertexShader();
|
|
|
|
static ID3D11VertexShader* GetClearVertexShader();
|
|
|
|
static ID3D11InputLayout* GetSimpleInputLayout();
|
|
|
|
static ID3D11InputLayout* GetClearInputLayout();
|
2010-06-13 22:50:06 +03:00
|
|
|
};
|
|
|
|
|
2011-01-29 22:16:51 +02:00
|
|
|
} // namespace DX11
|