FD3D12Viewport::ConditionalResetSwapChain

If the swap chain has been invalidated by DXGI, resets the swap chain to the expected state; otherwise, does nothing.

Choose your operating system:

Windows

macOS

Linux

References

Module

D3D12RHI

Header

/Engine/Source/Runtime/D3D12RHI/Public/D3D12Viewport.h

Include

#include "D3D12Viewport.h"

Syntax

void ConditionalResetSwapChain
(
    bool bIgnoreFocus
)

Remarks

If the swap chain has been invalidated by DXGI, resets the swap chain to the expected state; otherwise, does nothing. Called once/frame by the game thread on all viewports.

Parameters

Parameter

Description

bIgnoreFocus

Whether the reset should happen regardless of whether the window is focused.