diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-01-03 16:16:29 -0400 |
|---|---|---|
| committer | FernandoS27 <fsahmkow27@gmail.com> | 2020-01-24 16:43:29 -0400 |
| commit | c921e496eb47de49a4d6ce62527581b966dca259 (patch) | |
| tree | 788c71599f0abf53b479bd3f2f3ea730fc9c35c4 /src/video_core/shader/const_buffer_locker.h | |
| parent | a104b985a850f272831397c656e2fb01e5c1e52b (diff) | |
GPU: Implement guest driver profile and deduce texture handler sizes.
Diffstat (limited to 'src/video_core/shader/const_buffer_locker.h')
| -rw-r--r-- | src/video_core/shader/const_buffer_locker.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/shader/const_buffer_locker.h b/src/video_core/shader/const_buffer_locker.h index d32e2d657..78d9d7037 100644 --- a/src/video_core/shader/const_buffer_locker.h +++ b/src/video_core/shader/const_buffer_locker.h @@ -10,6 +10,7 @@ #include "common/hash.h" #include "video_core/engines/const_buffer_engine_interface.h" #include "video_core/engines/shader_type.h" +#include "video_core/guest_driver.h" namespace VideoCommon::Shader { @@ -71,6 +72,13 @@ public: return bindless_samplers; } + VideoCore::GuestDriverProfile* AccessGuestDriverProfile() { + if (engine) { + return &(engine->AccessGuestDriverProfile()); + } + return nullptr; + } + private: const Tegra::Engines::ShaderType stage; Tegra::Engines::ConstBufferEngineInterface* engine = nullptr; |
