[GPU] Scissor in draw_util

This commit is contained in:
Triang3l
2020-11-15 16:34:14 +03:00
parent 171c97c929
commit 56a07c1773
3 changed files with 50 additions and 27 deletions

View File

@@ -33,6 +33,14 @@ namespace draw_util {
// for use with the top-left rasterization rule later.
int32_t FloatToD3D11Fixed16p8(float f32);
struct Scissor {
uint32_t left;
uint32_t top;
uint32_t width;
uint32_t height;
};
void GetScissor(const RegisterFile& regs, Scissor& scissor_out);
// To avoid passing values that the shader won't understand (even though
// Direct3D 9 shouldn't pass them anyway).
xenos::CopySampleSelect SanitizeCopySampleSelect(