summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_3d.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-03-24 00:56:27 +0100
committerSubv <subv2112@gmail.com>2018-03-24 17:31:53 +0100
commit2c785bd06c8f979fbb869d533204b29d93973d83 (patch)
treec5f800ae155cddb0b36c3ac54febbf8169c709e5 /src/video_core/engines/maxwell_3d.h
parentFrontend: Updated the surface view debug widget to work with Maxwell surfaces. (diff)
downloadyuzu-2c785bd06c8f979fbb869d533204b29d93973d83.tar
yuzu-2c785bd06c8f979fbb869d533204b29d93973d83.tar.gz
yuzu-2c785bd06c8f979fbb869d533204b29d93973d83.tar.bz2
yuzu-2c785bd06c8f979fbb869d533204b29d93973d83.tar.lz
yuzu-2c785bd06c8f979fbb869d533204b29d93973d83.tar.xz
yuzu-2c785bd06c8f979fbb869d533204b29d93973d83.tar.zst
yuzu-2c785bd06c8f979fbb869d533204b29d93973d83.zip
Diffstat (limited to 'src/video_core/engines/maxwell_3d.h')
-rw-r--r--src/video_core/engines/maxwell_3d.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index 545d7ff35..441cc0c19 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -12,6 +12,7 @@
#include "common/common_funcs.h"
#include "common/common_types.h"
#include "video_core/memory_manager.h"
+#include "video_core/textures/texture.h"
namespace Tegra {
namespace Engines {
@@ -21,12 +22,6 @@ public:
explicit Maxwell3D(MemoryManager& memory_manager);
~Maxwell3D() = default;
- /// Write the value to the register identified by method.
- void WriteReg(u32 method, u32 value, u32 remaining_params);
-
- /// Uploads the code for a GPU macro program associated with the specified entry.
- void SubmitMacroCode(u32 entry, std::vector<u32> code);
-
/// Register structure of the Maxwell3D engine.
/// TODO(Subv): This structure will need to be made bigger as more registers are discovered.
struct Regs {
@@ -430,6 +425,15 @@ public:
State state{};
+ /// Write the value to the register identified by method.
+ void WriteReg(u32 method, u32 value, u32 remaining_params);
+
+ /// Uploads the code for a GPU macro program associated with the specified entry.
+ void SubmitMacroCode(u32 entry, std::vector<u32> code);
+
+ /// Returns a list of enabled textures for the specified shader stage.
+ std::vector<Texture::TICEntry> GetStageTextures(Regs::ShaderStage stage);
+
private:
MemoryManager& memory_manager;