diff options
| author | 2017-01-29 17:43:09 -0800 | |
|---|---|---|
| committer | 2017-02-12 18:11:03 -0800 | |
| commit | e1ad7d69b981c7ed249ba7efd4287d712db3747d (patch) | |
| tree | 813232650da323b708faef9ad8a7db7a50d3f287 /src/video_core/swrasterizer/framebuffer.h | |
| parent | VideoCore: Move software rasterizer files to sub-directory (diff) | |
| download | yuzu-e1ad7d69b981c7ed249ba7efd4287d712db3747d.tar.gz yuzu-e1ad7d69b981c7ed249ba7efd4287d712db3747d.tar.xz yuzu-e1ad7d69b981c7ed249ba7efd4287d712db3747d.zip | |
SWRasterizer: Move framebuffer operation functions to their own file
Diffstat (limited to 'src/video_core/swrasterizer/framebuffer.h')
| -rw-r--r-- | src/video_core/swrasterizer/framebuffer.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/video_core/swrasterizer/framebuffer.h b/src/video_core/swrasterizer/framebuffer.h new file mode 100644 index 000000000..220f7013b --- /dev/null +++ b/src/video_core/swrasterizer/framebuffer.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | // Copyright 2017 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "common/common_types.h" | ||
| 8 | #include "common/vector_math.h" | ||
| 9 | #include "video_core/regs_framebuffer.h" | ||
| 10 | |||
| 11 | namespace Pica { | ||
| 12 | namespace Rasterizer { | ||
| 13 | |||
| 14 | void DrawPixel(int x, int y, const Math::Vec4<u8>& color); | ||
| 15 | const Math::Vec4<u8> GetPixel(int x, int y); | ||
| 16 | u32 GetDepth(int x, int y); | ||
| 17 | u8 GetStencil(int x, int y); | ||
| 18 | void SetDepth(int x, int y, u32 value); | ||
| 19 | void SetStencil(int x, int y, u8 value); | ||
| 20 | u8 PerformStencilAction(FramebufferRegs::StencilAction action, u8 old_stencil, u8 ref); | ||
| 21 | |||
| 22 | } // namespace Rasterizer | ||
| 23 | } // namespace Pica | ||