summaryrefslogtreecommitdiff
path: root/src/video_core/shader/registry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/shader/registry.cpp')
-rw-r--r--src/video_core/shader/registry.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/video_core/shader/registry.cpp b/src/video_core/shader/registry.cpp
index 90dfab293..4a1e16c1e 100644
--- a/src/video_core/shader/registry.cpp
+++ b/src/video_core/shader/registry.cpp
@@ -5,6 +5,7 @@
5#include <algorithm> 5#include <algorithm>
6#include <tuple> 6#include <tuple>
7 7
8#include "common/assert.h"
8#include "common/common_types.h" 9#include "common/common_types.h"
9#include "video_core/engines/kepler_compute.h" 10#include "video_core/engines/kepler_compute.h"
10#include "video_core/engines/maxwell_3d.h" 11#include "video_core/engines/maxwell_3d.h"
@@ -144,4 +145,14 @@ bool Registry::HasEqualKeys(const Registry& rhs) const {
144 std::tie(rhs.keys, rhs.bound_samplers, rhs.bindless_samplers); 145 std::tie(rhs.keys, rhs.bound_samplers, rhs.bindless_samplers);
145} 146}
146 147
148const GraphicsInfo& Registry::GetGraphicsInfo() const {
149 ASSERT(stage != Tegra::Engines::ShaderType::Compute);
150 return graphics_info;
151}
152
153const ComputeInfo& Registry::GetComputeInfo() const {
154 ASSERT(stage == Tegra::Engines::ShaderType::Compute);
155 return compute_info;
156}
157
147} // namespace VideoCommon::Shader 158} // namespace VideoCommon::Shader