diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-02 05:08:10 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-09 22:40:53 +0100 |
commit | b1acb4f73f79a555480d1405bc9732cab111f6e2 (patch) | |
tree | e4f98cd81bbc476a88481151550cd6a515c3dd45 /src/video_core/shader/registry.cpp | |
parent | gl_shader_decompiler: Add identifier to decompiled code (diff) | |
download | yuzu-b1acb4f73f79a555480d1405bc9732cab111f6e2.tar yuzu-b1acb4f73f79a555480d1405bc9732cab111f6e2.tar.gz yuzu-b1acb4f73f79a555480d1405bc9732cab111f6e2.tar.bz2 yuzu-b1acb4f73f79a555480d1405bc9732cab111f6e2.tar.lz yuzu-b1acb4f73f79a555480d1405bc9732cab111f6e2.tar.xz yuzu-b1acb4f73f79a555480d1405bc9732cab111f6e2.tar.zst yuzu-b1acb4f73f79a555480d1405bc9732cab111f6e2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/registry.cpp | 11 |
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 @@ #include <algorithm> #include <tuple> +#include "common/assert.h" #include "common/common_types.h" #include "video_core/engines/kepler_compute.h" #include "video_core/engines/maxwell_3d.h" @@ -144,4 +145,14 @@ bool Registry::HasEqualKeys(const Registry& rhs) const { std::tie(rhs.keys, rhs.bound_samplers, rhs.bindless_samplers); } +const GraphicsInfo& Registry::GetGraphicsInfo() const { + ASSERT(stage != Tegra::Engines::ShaderType::Compute); + return graphics_info; +} + +const ComputeInfo& Registry::GetComputeInfo() const { + ASSERT(stage == Tegra::Engines::ShaderType::Compute); + return compute_info; +} + } // namespace VideoCommon::Shader |