diff options
| author | bunnei <bunneidev@gmail.com> | 2018-03-26 20:45:10 -0400 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2018-03-26 21:17:04 -0400 |
| commit | d30110348b10e1cf9765a5c7cec294a4e076a3af (patch) | |
| tree | db63e6bc201e5ad461803b2b13a033d7a6ed7837 /src/video_core/engines | |
| parent | 67bc2f5ecd325d8d23d6d3d1ac979c8c78fdd743 (diff) | |
gl_rasterizer: Add a SyncViewport method.
Diffstat (limited to 'src/video_core/engines')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index 0e1ae5912..3066bc606 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h @@ -11,6 +11,7 @@ #include "common/bit_field.h" #include "common/common_funcs.h" #include "common/common_types.h" +#include "common/math_util.h" #include "video_core/gpu.h" #include "video_core/memory_manager.h" #include "video_core/textures/texture.h" @@ -281,6 +282,15 @@ public: }; float depth_range_near; float depth_range_far; + + MathUtil::Rectangle<s32> GetRect() const { + return { + static_cast<s32>(x), // left + static_cast<s32>(y + height), // top + static_cast<s32>(x + width), // right + static_cast<s32>(y) // bottom + }; + }; } viewport[NumViewports]; INSERT_PADDING_WORDS(0x1D); |
