mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-15 16:29:16 +01:00
[d3d11] Set color space for swap chain image
This commit is contained in:
parent
ed3c02906c
commit
b586294e29
@ -421,6 +421,14 @@ namespace dxvk {
|
|||||||
cColorSpace = m_colorSpace,
|
cColorSpace = m_colorSpace,
|
||||||
cFrameId = m_frameId
|
cFrameId = m_frameId
|
||||||
] (DxvkContext* ctx) {
|
] (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
|
// Blit the D3D back buffer onto the actual Vulkan
|
||||||
// swap chain and render the HUD if we have one.
|
// swap chain and render the HUD if we have one.
|
||||||
auto contextObjects = ctx->beginExternalRendering();
|
auto contextObjects = ctx->beginExternalRendering();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user