summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D/PointGeometryShader.h
blob: b24f73d486a0ffc9bfa231a164464feec7993b46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.

#pragma once

#include "VideoCommon/VideoCommon.h"

struct ID3D11Buffer;
struct ID3D11GeometryShader;

namespace DX11
{

// This class manages a collection of point geometry shaders, one for each
// vertex format.
class PointGeometryShader
{

public:

	PointGeometryShader();

	void Init();
	void Shutdown();
	// Returns true on success, false on failure
	bool SetShader(u32 components, float pointSize, float texOffset,
		float vpWidth, float vpHeight, const bool* texOffsetEnable);

private:

	bool m_ready;

	ID3D11Buffer* m_paramsBuffer;

	typedef std::map<u32, ID3D11GeometryShader*> ComboMap;

	ComboMap m_shaders;

};

}