summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2023-02-13 16:05:51 +1300
committerGitHub <noreply@github.com>2023-02-13 16:05:51 +1300
commitf37113204fe8e930c4e33e5e0149fbe0309fe425 (patch)
tree9974c89131a5e1092f6551034926d9de0c32413e /Source/Core/VideoCommon
parent2c24d07837b9ab94219de592adf34a35a2dc897e (diff)
parentaf313f84198d2eb52690b406164eebcb1866d251 (diff)
Merge pull request #11550 from iwubcode/set_common_samplers_count
VideoCommon: add constant value for maximum number of pixel samplers
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/CMakeLists.txt1
-rw-r--r--Source/Core/VideoCommon/Constants.h11
2 files changed, 12 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/CMakeLists.txt b/Source/Core/VideoCommon/CMakeLists.txt
index 036a5c2c24..2737d5a514 100644
--- a/Source/Core/VideoCommon/CMakeLists.txt
+++ b/Source/Core/VideoCommon/CMakeLists.txt
@@ -23,6 +23,7 @@ add_library(videocommon
CommandProcessor.cpp
CommandProcessor.h
ConstantManager.h
+ Constants.h
CPMemory.cpp
CPMemory.h
CPUCull.cpp
diff --git a/Source/Core/VideoCommon/Constants.h b/Source/Core/VideoCommon/Constants.h
new file mode 100644
index 0000000000..8da73e8054
--- /dev/null
+++ b/Source/Core/VideoCommon/Constants.h
@@ -0,0 +1,11 @@
+// Copyright 2023 Dolphin Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "Common/CommonTypes.h"
+
+namespace VideoCommon
+{
+constexpr u32 MAX_PIXEL_SHADER_SAMPLERS = 8;
+}