2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2014 Dolphin Emulator Project
|
2021-07-05 03:22:19 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2014-12-14 21:23:13 +01:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2016-01-17 22:54:31 +01:00
|
|
|
#include "Common/CommonTypes.h"
|
2014-12-14 21:23:13 +01:00
|
|
|
#include "VideoCommon/ConstantManager.h"
|
|
|
|
|
|
|
|
class PointerWrap;
|
2022-07-23 07:47:04 +02:00
|
|
|
enum class PrimitiveType : u32;
|
2014-12-14 21:23:13 +01:00
|
|
|
|
|
|
|
// The non-API dependent parts.
|
|
|
|
class GeometryShaderManager
|
|
|
|
{
|
|
|
|
public:
|
2022-12-29 15:27:48 +01:00
|
|
|
void Init();
|
|
|
|
void Dirty();
|
|
|
|
void DoState(PointerWrap& p);
|
|
|
|
|
|
|
|
void SetConstants(PrimitiveType prim);
|
|
|
|
void SetViewportChanged();
|
|
|
|
void SetProjectionChanged();
|
|
|
|
void SetLinePtWidthChanged();
|
|
|
|
void SetTexCoordChanged(u8 texmapid);
|
|
|
|
|
|
|
|
GeometryShaderConstants constants{};
|
|
|
|
bool dirty = false;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void SetVSExpand(VSExpand expand);
|
|
|
|
|
|
|
|
bool m_projection_changed = false;
|
|
|
|
bool m_viewport_changed = false;
|
2014-12-14 21:23:13 +01:00
|
|
|
};
|