diff options
| author | 2016-09-18 09:38:01 +0900 | |
|---|---|---|
| committer | 2016-09-18 09:38:01 +0900 | |
| commit | dc8479928c5aee4c6ad6fe4f59006fb604cee701 (patch) | |
| tree | 569a7f13128450bbab973236615587ff00bced5f /src/video_core/rasterizer_interface.h | |
| parent | Travis: Import Dolphin’s clang-format hook. (diff) | |
| download | yuzu-dc8479928c5aee4c6ad6fe4f59006fb604cee701.tar.gz yuzu-dc8479928c5aee4c6ad6fe4f59006fb604cee701.tar.xz yuzu-dc8479928c5aee4c6ad6fe4f59006fb604cee701.zip | |
Sources: Run clang-format on everything.
Diffstat (limited to 'src/video_core/rasterizer_interface.h')
| -rw-r--r-- | src/video_core/rasterizer_interface.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h index bf7101665..ce834bd30 100644 --- a/src/video_core/rasterizer_interface.h +++ b/src/video_core/rasterizer_interface.h | |||
| @@ -20,7 +20,8 @@ namespace VideoCore { | |||
| 20 | 20 | ||
| 21 | class RasterizerInterface { | 21 | class RasterizerInterface { |
| 22 | public: | 22 | public: |
| 23 | virtual ~RasterizerInterface() {} | 23 | virtual ~RasterizerInterface() { |
| 24 | } | ||
| 24 | 25 | ||
| 25 | /// Queues the primitive formed by the given vertices for rendering | 26 | /// Queues the primitive formed by the given vertices for rendering |
| 26 | virtual void AddTriangle(const Pica::Shader::OutputVertex& v0, | 27 | virtual void AddTriangle(const Pica::Shader::OutputVertex& v0, |
| @@ -39,17 +40,25 @@ public: | |||
| 39 | /// Notify rasterizer that any caches of the specified region should be flushed to 3DS memory | 40 | /// Notify rasterizer that any caches of the specified region should be flushed to 3DS memory |
| 40 | virtual void FlushRegion(PAddr addr, u32 size) = 0; | 41 | virtual void FlushRegion(PAddr addr, u32 size) = 0; |
| 41 | 42 | ||
| 42 | /// Notify rasterizer that any caches of the specified region should be flushed to 3DS memory and invalidated | 43 | /// Notify rasterizer that any caches of the specified region should be flushed to 3DS memory |
| 44 | /// and invalidated | ||
| 43 | virtual void FlushAndInvalidateRegion(PAddr addr, u32 size) = 0; | 45 | virtual void FlushAndInvalidateRegion(PAddr addr, u32 size) = 0; |
| 44 | 46 | ||
| 45 | /// Attempt to use a faster method to perform a display transfer | 47 | /// Attempt to use a faster method to perform a display transfer |
| 46 | virtual bool AccelerateDisplayTransfer(const GPU::Regs::DisplayTransferConfig& config) { return false; } | 48 | virtual bool AccelerateDisplayTransfer(const GPU::Regs::DisplayTransferConfig& config) { |
| 49 | return false; | ||
| 50 | } | ||
| 47 | 51 | ||
| 48 | /// Attempt to use a faster method to fill a region | 52 | /// Attempt to use a faster method to fill a region |
| 49 | virtual bool AccelerateFill(const GPU::Regs::MemoryFillConfig& config) { return false; } | 53 | virtual bool AccelerateFill(const GPU::Regs::MemoryFillConfig& config) { |
| 54 | return false; | ||
| 55 | } | ||
| 50 | 56 | ||
| 51 | /// Attempt to use a faster method to display the framebuffer to screen | 57 | /// Attempt to use a faster method to display the framebuffer to screen |
| 52 | virtual bool AccelerateDisplay(const GPU::Regs::FramebufferConfig& config, PAddr framebuffer_addr, u32 pixel_stride, ScreenInfo& screen_info) { return false; } | 58 | virtual bool AccelerateDisplay(const GPU::Regs::FramebufferConfig& config, |
| 59 | PAddr framebuffer_addr, u32 pixel_stride, | ||
| 60 | ScreenInfo& screen_info) { | ||
| 61 | return false; | ||
| 62 | } | ||
| 53 | }; | 63 | }; |
| 54 | |||
| 55 | } | 64 | } |