1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-14 04:29:15 +01:00

[d3d11] Set color space for swap chain image

This commit is contained in:
Philip Rebohle 2025-01-13 00:16:08 +01:00 committed by Philip Rebohle
parent ed3c02906c
commit b586294e29

View File

@ -421,6 +421,14 @@ namespace dxvk {
cColorSpace = m_colorSpace,
cFrameId = m_frameId
] (DxvkContext* ctx) {
// Update back buffer color space as necessary
if (cSwapImage->image()->info().colorSpace != cColorSpace) {
DxvkImageUsageInfo usage = { };
usage.colorSpace = cColorSpace;
ctx->ensureImageCompatibility(cSwapImage->image(), usage);
}
// Blit the D3D back buffer onto the actual Vulkan
// swap chain and render the HUD if we have one.
auto contextObjects = ctx->beginExternalRendering();