summaryrefslogtreecommitdiff
path: root/src/video_core/rasterizer_interface.h
diff options
context:
space:
mode:
authorGravatar Emmanuel Gil Peyrot2016-09-18 09:38:01 +0900
committerGravatar Emmanuel Gil Peyrot2016-09-18 09:38:01 +0900
commitdc8479928c5aee4c6ad6fe4f59006fb604cee701 (patch)
tree569a7f13128450bbab973236615587ff00bced5f /src/video_core/rasterizer_interface.h
parentTravis: Import Dolphin’s clang-format hook. (diff)
downloadyuzu-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.h21
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
21class RasterizerInterface { 21class RasterizerInterface {
22public: 22public:
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}