mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-12 14:46:08 +00:00
Add an end2end test for SetScissorRect
This commit is contained in:
committed by
Corentin Wallez
parent
3a2d9b9a13
commit
57f7bc750a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user