Add an end2end test for SetScissorRect

This commit is contained in:
Corentin Wallez
2018-02-14 15:23:32 -05:00
committed by Corentin Wallez
parent 3a2d9b9a13
commit 57f7bc750a
6 changed files with 187 additions and 7 deletions

View File

@@ -532,9 +532,9 @@ namespace backend { namespace d3d12 {
SetScissorRectCmd* cmd = mCommands.NextCommand<SetScissorRectCmd>();
D3D12_RECT rect;
rect.left = cmd->x;
rect.bottom = cmd->y;
rect.top = cmd->y;
rect.right = cmd->x + cmd->width;
rect.top = cmd->y + cmd->height;
rect.bottom = cmd->y + cmd->height;
commandList->RSSetScissorRects(1, &rect);
} break;