2013-04-17 21:29:41 -06:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2011-03-14 03:38:29 -06:00
|
|
|
|
2014-02-10 11:54:46 -07:00
|
|
|
#pragma once
|
2011-03-14 03:38:29 -06:00
|
|
|
|
|
|
|
#include "VideoCommon.h"
|
2011-06-11 13:37:21 -06:00
|
|
|
|
|
|
|
struct ID3D11Buffer;
|
|
|
|
struct ID3D11GeometryShader;
|
2011-03-14 03:38:29 -06:00
|
|
|
|
|
|
|
namespace DX11
|
|
|
|
{
|
|
|
|
|
|
|
|
// This class manages a collection of point geometry shaders, one for each
|
|
|
|
// vertex format.
|
|
|
|
class PointGeometryShader
|
|
|
|
{
|
2011-06-11 13:37:21 -06:00
|
|
|
|
2011-03-14 03:38:29 -06:00
|
|
|
public:
|
2011-06-11 13:37:21 -06:00
|
|
|
|
2011-03-14 03:38:29 -06:00
|
|
|
PointGeometryShader();
|
|
|
|
|
2011-06-11 13:37:21 -06:00
|
|
|
void Init();
|
|
|
|
void Shutdown();
|
2011-03-14 03:38:29 -06:00
|
|
|
// Returns true on success, false on failure
|
2011-03-27 23:42:21 -06:00
|
|
|
bool SetShader(u32 components, float pointSize, float texOffset,
|
2011-04-15 16:34:54 -06:00
|
|
|
float vpWidth, float vpHeight, const bool* texOffsetEnable);
|
2011-03-14 03:38:29 -06:00
|
|
|
|
|
|
|
private:
|
2011-06-11 13:37:21 -06:00
|
|
|
|
2011-03-14 03:38:29 -06:00
|
|
|
bool m_ready;
|
|
|
|
|
2011-06-11 13:37:21 -06:00
|
|
|
ID3D11Buffer* m_paramsBuffer;
|
2011-03-14 03:38:29 -06:00
|
|
|
|
2011-06-11 13:37:21 -06:00
|
|
|
typedef std::map<u32, ID3D11GeometryShader*> ComboMap;
|
2011-03-14 03:38:29 -06:00
|
|
|
|
|
|
|
ComboMap m_shaders;
|
2011-06-11 13:37:21 -06:00
|
|
|
|
2011-03-14 03:38:29 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|