#include <D3D12Viewport.h>
|
| | FD3D12Viewport (class FD3D12Adapter *InParent, HWND InWindowHandle, uint32 InSizeX, uint32 InSizeY, bool bInIsFullscreen, EPixelFormat InPixelFormat, uint32 InNumBackBuffers) |
| |
| void | Init () |
| |
| | ~FD3D12Viewport () |
| |
| void | Resize (uint32 InSizeX, uint32 InSizeY, bool bInIsFullscreen, EPixelFormat PreferredPixelFormat) |
| |
| void | ConditionalResetSwapChain (bool bIgnoreFocus) |
| |
| bool | Present (class FD3D12CommandContextBase &Context, bool bLockToVsync) |
| |
| FIntPoint | GetSizeXY () const |
| |
| FD3D12Texture * | GetBackBuffer_RenderThread () const |
| |
| FD3D12Texture * | GetBackBuffer_RHIThread () const |
| |
| FD3D12Texture * | GetSDRBackBuffer_RHIThread () const |
| |
| virtual void | WaitForFrameEventCompletion () override |
| |
| virtual void | IssueFrameEvent () override |
| |
| virtual void * | GetNativeSwapChain () const override |
| |
| virtual void * | GetNativeBackBufferTexture () const override |
| |
| virtual void * | GetNativeBackBufferRT () const override |
| |
| virtual void | SetCustomPresent (FRHICustomPresent *InCustomPresent) override |
| |
| virtual FRHICustomPresent * | GetCustomPresent () const override |
| |
| virtual void * | GetNativeWindow (void **AddParam=nullptr) const override |
| |
| uint32 | GetNumBackBuffers () const |
| |
| const bool | IsFullscreen () const |
| |
| bool | CurrentOutputSupportsHDR () const |
| |
| void | AdvanceExpectedBackBufferIndex_RenderThread () |
| |
| void | OnResumeRendering () |
| |
| void | OnSuspendRendering () |
| |
| | FRHIViewport () |
| |
| virtual FRHITexture * | GetOptionalSDRBackBuffer (FRHITexture *BackBuffer) const |
| |
| virtual void | Tick (float DeltaTime) |
| |
| RHI_API | FRHIResource (ERHIResourceType InResourceType) |
| |
| uint32 | AddRef () const |
| |
| uint32 | Release () const |
| |
| uint32 | GetRefCount () const |
| |
| bool | IsValid () const |
| |
| void | DisableLifetimeExtension () |
| |
| ERHIResourceType | GetType () const |
| |
| FName | GetOwnerName () const |
| |
| void | SetOwnerName (FName InOwnerName) |
| |
| | FD3D12AdapterChild (FD3D12Adapter *InParent=nullptr) |
| |
| FORCEINLINE FD3D12Adapter * | GetParentAdapter () const |
| |
| void | SetParentAdapter (FD3D12Adapter *InParent) |
| |
◆ FD3D12Viewport()
◆ ~FD3D12Viewport()
| FD3D12Viewport::~FD3D12Viewport |
( |
| ) |
|
◆ AdvanceExpectedBackBufferIndex_RenderThread()
| void FD3D12Viewport::AdvanceExpectedBackBufferIndex_RenderThread |
( |
| ) |
|
Advance and get the next present GPU index
Update the expected next present GPU back buffer index from RenderThread point of view
◆ ConditionalResetSwapChain()
| void FD3D12Viewport::ConditionalResetSwapChain |
( |
bool |
bIgnoreFocus | ) |
|
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
-
| bIgnoreFocus | - Whether the reset should happen regardless of whether the window is focused. |
◆ CurrentOutputSupportsHDR()
| bool FD3D12Viewport::CurrentOutputSupportsHDR |
( |
| ) |
const |
Query the swap chain's current connected output for HDR support.
◆ GetBackBuffer_RenderThread()
| FD3D12Texture * FD3D12Viewport::GetBackBuffer_RenderThread |
( |
| ) |
const |
|
inline |
◆ GetBackBuffer_RHIThread()
| FD3D12Texture * FD3D12Viewport::GetBackBuffer_RHIThread |
( |
| ) |
const |
|
inline |
◆ GetCustomPresent()
Returns currently set custom present handler.
Reimplemented from FRHIViewport.
◆ GetNativeBackBufferRT()
| void * FD3D12Viewport::GetNativeBackBufferRT |
( |
| ) |
const |
|
overridevirtual |
Returns access to the platform-specific native resource pointer to a backbuffer rendertarget. This is designed to be used to provide plugins with access to the underlying resource and should be used very carefully or not at all.
- Returns
- The pointer to the native resource or NULL if it not initialized or not supported for this resource type for some reason
Reimplemented from FRHIViewport.
◆ GetNativeBackBufferTexture()
| void * FD3D12Viewport::GetNativeBackBufferTexture |
( |
| ) |
const |
|
overridevirtual |
Returns access to the platform-specific native resource pointer to a backbuffer texture. This is designed to be used to provide plugins with access to the underlying resource and should be used very carefully or not at all.
- Returns
- The pointer to the native resource or NULL if it not initialized or not supported for this resource type for some reason
Reimplemented from FRHIViewport.
◆ GetNativeSwapChain()
| void * FD3D12Viewport::GetNativeSwapChain |
( |
| ) |
const |
|
overridevirtual |
Returns access to the platform-specific native resource pointer. This is designed to be used to provide plugins with access to the underlying resource and should be used very carefully or not at all.
- Returns
- The pointer to the native resource or NULL if it not initialized or not supported for this resource type for some reason
Reimplemented from FRHIViewport.
◆ GetNativeWindow()
| virtual void * FD3D12Viewport::GetNativeWindow |
( |
void ** |
AddParam = nullptr | ) |
const |
|
inlineoverridevirtual |
Returns access to the platform-specific native window. This is designed to be used to provide plugins with access to the underlying resource and should be used very carefully or not at all.
- Returns
- The pointer to the native resource or NULL if it not initialized or not supported for this resource type for some reason. AddParam could represent any additional platform-specific data (could be null).
Reimplemented from FRHIViewport.
◆ GetNumBackBuffers()
| uint32 FD3D12Viewport::GetNumBackBuffers |
( |
| ) |
const |
|
inline |
◆ GetSDRBackBuffer_RHIThread()
| FD3D12Texture * FD3D12Viewport::GetSDRBackBuffer_RHIThread |
( |
| ) |
const |
|
inline |
◆ GetSizeXY()
| FIntPoint FD3D12Viewport::GetSizeXY |
( |
| ) |
const |
|
inline |
◆ Init()
| void FD3D12Viewport::Init |
( |
| ) |
|
◆ IsFullscreen()
| const bool FD3D12Viewport::IsFullscreen |
( |
| ) |
const |
|
inline |
◆ IssueFrameEvent()
| void FD3D12Viewport::IssueFrameEvent |
( |
| ) |
|
|
overridevirtual |
◆ OnResumeRendering()
| void FD3D12Viewport::OnResumeRendering |
( |
| ) |
|
◆ OnSuspendRendering()
| void FD3D12Viewport::OnSuspendRendering |
( |
| ) |
|
◆ Present()
Presents the swap chain. Returns true if Present was done by Engine.
◆ Resize()
◆ SetCustomPresent()
Sets custom Present handler on the viewport
Reimplemented from FRHIViewport.
◆ WaitForFrameEventCompletion()
| void FD3D12Viewport::WaitForFrameEventCompletion |
( |
| ) |
|
|
overridevirtual |
◆ DXGIBackBufferLock
The documentation for this class was generated from the following files: