summaryrefslogtreecommitdiff
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorGravatar bunnei2018-03-26 20:45:10 -0400
committerGravatar bunnei2018-03-26 21:17:04 -0400
commitd30110348b10e1cf9765a5c7cec294a4e076a3af (patch)
treedb63e6bc201e5ad461803b2b13a033d7a6ed7837 /src/video_core/engines
parentgl_rasterizer: Move PrimitiveTopology check to MaxwellToGL. (diff)
downloadyuzu-d30110348b10e1cf9765a5c7cec294a4e076a3af.tar.gz
yuzu-d30110348b10e1cf9765a5c7cec294a4e076a3af.tar.xz
yuzu-d30110348b10e1cf9765a5c7cec294a4e076a3af.zip
gl_rasterizer: Add a SyncViewport method.
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/maxwell_3d.h10
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 @@
11#include "common/bit_field.h" 11#include "common/bit_field.h"
12#include "common/common_funcs.h" 12#include "common/common_funcs.h"
13#include "common/common_types.h" 13#include "common/common_types.h"
14#include "common/math_util.h"
14#include "video_core/gpu.h" 15#include "video_core/gpu.h"
15#include "video_core/memory_manager.h" 16#include "video_core/memory_manager.h"
16#include "video_core/textures/texture.h" 17#include "video_core/textures/texture.h"
@@ -281,6 +282,15 @@ public:
281 }; 282 };
282 float depth_range_near; 283 float depth_range_near;
283 float depth_range_far; 284 float depth_range_far;
285
286 MathUtil::Rectangle<s32> GetRect() const {
287 return {
288 static_cast<s32>(x), // left
289 static_cast<s32>(y + height), // top
290 static_cast<s32>(x + width), // right
291 static_cast<s32>(y) // bottom
292 };
293 };
284 } viewport[NumViewports]; 294 } viewport[NumViewports];
285 295
286 INSERT_PADDING_WORDS(0x1D); 296 INSERT_PADDING_WORDS(0x1D);