diff options
| author | 2018-08-05 16:37:39 -0400 | |
|---|---|---|
| committer | 2018-08-05 16:37:39 -0400 | |
| commit | c0af42d6eb7dbe7879f555aa9a415faee4c3d6d1 (patch) | |
| tree | 85469600d392a504b6de17b57b3e2f96e8cfb10b /src/video_core/gpu.h | |
| parent | Merge pull request #928 from MerryMage/dynarmic (diff) | |
| parent | renderer_base: Make Rasterizer() return the rasterizer by reference (diff) | |
| download | yuzu-c0af42d6eb7dbe7879f555aa9a415faee4c3d6d1.tar.gz yuzu-c0af42d6eb7dbe7879f555aa9a415faee4c3d6d1.tar.xz yuzu-c0af42d6eb7dbe7879f555aa9a415faee4c3d6d1.zip | |
Merge pull request #912 from lioncash/global-var
video_core: Eliminate the g_renderer global variable
Diffstat (limited to 'src/video_core/gpu.h')
| -rw-r--r-- | src/video_core/gpu.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index 08aa75503..440505c9d 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h | |||
| @@ -11,6 +11,10 @@ | |||
| 11 | #include "core/hle/service/nvflinger/buffer_queue.h" | 11 | #include "core/hle/service/nvflinger/buffer_queue.h" |
| 12 | #include "video_core/memory_manager.h" | 12 | #include "video_core/memory_manager.h" |
| 13 | 13 | ||
| 14 | namespace VideoCore { | ||
| 15 | class RasterizerInterface; | ||
| 16 | } | ||
| 17 | |||
| 14 | namespace Tegra { | 18 | namespace Tegra { |
| 15 | 19 | ||
| 16 | enum class RenderTargetFormat : u32 { | 20 | enum class RenderTargetFormat : u32 { |
| @@ -98,7 +102,7 @@ enum class EngineID { | |||
| 98 | 102 | ||
| 99 | class GPU final { | 103 | class GPU final { |
| 100 | public: | 104 | public: |
| 101 | GPU(); | 105 | explicit GPU(VideoCore::RasterizerInterface& rasterizer); |
| 102 | ~GPU(); | 106 | ~GPU(); |
| 103 | 107 | ||
| 104 | /// Processes a command list stored at the specified address in GPU memory. | 108 | /// Processes a command list stored at the specified address in GPU memory. |