- fully enable vk_hdr as a feature since it works now after the queue family selection was improved
This commit is contained in:
parent
954b72915c
commit
c010c5e818
2 changed files with 15 additions and 8 deletions
|
|
@ -195,6 +195,11 @@ void VkPostprocess::DrawPresentTexture(const IntRect &box, bool applyGamma, bool
|
|||
uniforms.Scale = { screen->mScreenViewport.width / (float)fb->GetBuffers()->GetWidth(), -screen->mScreenViewport.height / (float)fb->GetBuffers()->GetHeight() };
|
||||
uniforms.Offset = { 0.0f, 1.0f };
|
||||
|
||||
if (applyGamma && fb->swapChain->swapChainFormat.colorSpace == VK_COLOR_SPACE_HDR10_ST2084_EXT)
|
||||
{
|
||||
uniforms.InvGamma *= 2.2f;
|
||||
}
|
||||
|
||||
VkPPRenderState renderstate;
|
||||
renderstate.Shader = &hw_postprocess.present.Present;
|
||||
renderstate.Uniforms.Set(uniforms);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue