mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-24 23:07:56 +00:00
gl_rasterizer: Add a SyncViewport method.
This commit is contained in:
parent
2666b52264
commit
b9eae6e652
3 changed files with 30 additions and 18 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue