2015-05-24 04:55:12 +00:00
|
|
|
// Copyright 2014 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2014-12-03 21:17:56 +00:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <d3d11.h>
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
#include "VideoCommon/GeometryShaderGen.h"
|
|
|
|
|
|
|
|
namespace DX11
|
|
|
|
{
|
|
|
|
class GeometryShaderCache
|
|
|
|
{
|
|
|
|
public:
|
2016-06-24 08:43:46 +00:00
|
|
|
static void Init();
|
|
|
|
static void Shutdown();
|
2014-12-03 21:17:56 +00:00
|
|
|
|
2017-02-16 04:37:04 +00:00
|
|
|
static ID3D11GeometryShader* GetClearGeometryShader();
|
|
|
|
static ID3D11GeometryShader* GetCopyGeometryShader();
|
2014-11-23 01:13:25 +00:00
|
|
|
|
2018-11-27 07:16:53 +00:00
|
|
|
static ID3D11Buffer* GetConstantBuffer();
|
|
|
|
static void UpdateConstantBuffer(const void* data, u32 data_size);
|
2014-12-03 21:17:56 +00:00
|
|
|
};
|
|
|
|
|
2014-12-12 16:25:16 +00:00
|
|
|
} // namespace DX11
|