UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
D3D12Viewport.cpp File Reference
#include "D3D12Viewport.h"
#include "D3D12RHIPrivate.h"
#include "RenderCore.h"
#include "Engine/RendererSettings.h"
#include "HDRHelper.h"
#include "DataDrivenShaderPlatformInfo.h"
#include "RHIUtilities.h"

Namespaces

namespace  D3D12RHI
 
namespace  D3D12RHI::RHIConsoleVariables
 

Functions

FD3D12TextureGetSwapChainSurface (FD3D12Device *Parent, EPixelFormat PixelFormat, uint32 SizeX, uint32 SizeY, IDXGISwapChain *SwapChain, uint32 BackBufferIndex, TRefCountPtr< ID3D12Resource > BackBufferResourceOverride)
 
DXGI_MODE_DESC SetupDXGI_MODE_DESC (uint32 SizeX, uint32 SizeY, EPixelFormat PixelFormat)
 
template<typename TResource , typename TSubresource = TResource>
bool ReleaseBackBufferResource (TRefCountPtr< TResource > &Resource, const TCHAR *ErrorName, uint32 Index)
 
EPixelFormat GetDefaultBackBufferPixelFormat ()
 

Variables

int32 D3D12RHI::RHIConsoleVariables::LogViewportEvents = 0
 

Function Documentation

◆ GetDefaultBackBufferPixelFormat()

EPixelFormat GetDefaultBackBufferPixelFormat ( )

◆ GetSwapChainSurface()

FD3D12Texture * GetSwapChainSurface ( FD3D12Device Parent,
EPixelFormat  PixelFormat,
uint32  SizeX,
uint32  SizeY,
IDXGISwapChain SwapChain,
uint32  BackBufferIndex,
TRefCountPtr< ID3D12Resource BackBufferResourceOverride 
)

Creates a FD3D12Surface to represent a swap chain's back buffer.

◆ ReleaseBackBufferResource()

template<typename TResource , typename TSubresource = TResource>
bool ReleaseBackBufferResource ( TRefCountPtr< TResource > &  Resource,
const TCHAR ErrorName,
uint32  Index 
)

◆ SetupDXGI_MODE_DESC()

DXGI_MODE_DESC SetupDXGI_MODE_DESC ( uint32  SizeX,
uint32  SizeY,
EPixelFormat  PixelFormat 
)
inline