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