mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-20 09:19:48 +00:00
Improve documentation.
This commit is contained in:
parent
8c1c7fc2da
commit
7078216b61
7 changed files with 44 additions and 26 deletions
|
@ -578,7 +578,10 @@ void Renderer::SetViewport()
|
|||
Wd = (X + Wd <= GetTargetWidth()) ? Wd : (GetTargetWidth() - X);
|
||||
Ht = (Y + Ht <= GetTargetHeight()) ? Ht : (GetTargetHeight() - Y);
|
||||
|
||||
D3D11_VIEWPORT vp = CD3D11_VIEWPORT(X, Y, Wd, Ht, D3D11_MIN_DEPTH, 16777215.0f / 16777216.0f);
|
||||
// We do depth clipping and depth range in the vertex shader instead of relying
|
||||
// on the graphics API. However we still need to ensure depth values don't exceed
|
||||
// the maximum value supported by the console GPU.
|
||||
D3D11_VIEWPORT vp = CD3D11_VIEWPORT(X, Y, Wd, Ht, D3D11_MIN_DEPTH, GX_MAX_DEPTH);
|
||||
D3D::context->RSSetViewports(1, &vp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue