This commit is contained in:
Branimir Karadžić 2015-08-27 22:13:43 -07:00
parent b7ebbb07b6
commit 0100107fc1

View file

@ -1392,6 +1392,13 @@ namespace bgfx { namespace d3d12
vp.MaxDepth = 1.0f; vp.MaxDepth = 1.0f;
m_commandList->RSSetViewports(1, &vp); m_commandList->RSSetViewports(1, &vp);
D3D12_RECT rc;
rc.left = 0;
rc.top = 0;
rc.right = width;
rc.bottom = height;
m_commandList->RSSetScissorRects(1, &rc);
const uint64_t state = 0 const uint64_t state = 0
| BGFX_STATE_RGB_WRITE | BGFX_STATE_RGB_WRITE
| BGFX_STATE_ALPHA_WRITE | BGFX_STATE_ALPHA_WRITE