mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[hud] Explicitly set up viewport state
This commit is contained in:
parent
869190964f
commit
277a4f0206
@ -78,6 +78,19 @@ namespace dxvk::hud {
|
|||||||
VkExtent2D surfaceSize) {
|
VkExtent2D surfaceSize) {
|
||||||
bool isSrgb = imageFormatInfo(surfaceFormat.format)->flags.test(DxvkFormatFlag::ColorSpaceSrgb);
|
bool isSrgb = imageFormatInfo(surfaceFormat.format)->flags.test(DxvkFormatFlag::ColorSpaceSrgb);
|
||||||
|
|
||||||
|
VkViewport viewport;
|
||||||
|
viewport.x = 0.0f;
|
||||||
|
viewport.y = 0.0f;
|
||||||
|
viewport.width = float(surfaceSize.width);
|
||||||
|
viewport.height = float(surfaceSize.height);
|
||||||
|
viewport.minDepth = 0.0f;
|
||||||
|
viewport.maxDepth = 1.0f;
|
||||||
|
|
||||||
|
VkRect2D scissor;
|
||||||
|
scissor.offset = { 0, 0 };
|
||||||
|
scissor.extent = surfaceSize;
|
||||||
|
|
||||||
|
ctx->setViewports(1, &viewport, &scissor);
|
||||||
ctx->setRasterizerState(m_rsState);
|
ctx->setRasterizerState(m_rsState);
|
||||||
ctx->setBlendMode(0, m_blendMode);
|
ctx->setBlendMode(0, m_blendMode);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user