2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2014 Dolphin Emulator Project
|
2015-05-18 01:08:10 +02:00
|
|
|
// Licensed under GPLv2+
|
2014-12-03 22:17:56 +01: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 10:43:46 +02:00
|
|
|
static void Init();
|
|
|
|
static void Shutdown();
|
2014-12-03 22:17:56 +01:00
|
|
|
|
2017-02-15 20:37:04 -08:00
|
|
|
static ID3D11GeometryShader* GetClearGeometryShader();
|
|
|
|
static ID3D11GeometryShader* GetCopyGeometryShader();
|
2014-11-23 02:13:25 +01:00
|
|
|
|
2018-11-27 17:16:53 +10:00
|
|
|
static ID3D11Buffer* GetConstantBuffer();
|
|
|
|
static void UpdateConstantBuffer(const void* data, u32 data_size);
|
2014-12-03 22:17:56 +01:00
|
|
|
};
|
|
|
|
|
2014-12-12 17:25:16 +01:00
|
|
|
} // namespace DX11
|