Class GPUSwapChainDX12
Graphics Device rendering output for DirectX 12 backend.
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/GraphicsDevice/DirectX/DX12/GPUSwapChainDX12.h
Syntax
public class GPUSwapChainDX12 : public GPUResourceDX12
Constructors
GPUSwapChainDX12(GPUDeviceDX12* device, Window* window)
Declaration
public GPUSwapChainDX12(GPUDeviceDX12* device, Window* window)
Parameters
GPUDeviceDX12
device
|
Window
window
|
Methods
CopyBackbuffer(GPUContext* context, GPUTexture* dst)
Copies the backbuffer contents to the destination texture.
Declaration
public virtual void CopyBackbuffer(GPUContext* context, GPUTexture* dst) override
Parameters
GPUContext
context
The GPU commands context. |
GPUTexture
dst
The destination texture. It must match the output dimensions and format. No staging texture support. |
Overrides
End(RenderTask* task)
End task rendering.
Declaration
public virtual void End(RenderTask* task) override
Parameters
RenderTask
task
Active task |
Overrides
GetBackBuffer()
Gets current backbuffer resource.
Declaration
public ID3D12Resource* GetBackBuffer() const
Returns
ID3D12Resource
The backbuffer resource. |
GetBackBufferHandleDX12()
Gets render target handle for DirectX 12 backend.
Declaration
public GPUTextureViewDX12* GetBackBufferHandleDX12() const
Returns
GPUTextureViewDX12
The render target handle. |
GetBackBufferView()
Gets the view for the output back buffer texture (for the current frame rendering).
Declaration
public virtual GPUTextureView* GetBackBufferView() override
Returns
GPUTextureView
The output texture view to use. |
Overrides
IsFullscreen()
True if running in fullscreen mode.
Declaration
public virtual bool IsFullscreen() override
Returns
bool
True if is in fullscreen mode, otherwise false |
Overrides
OnReleaseGPU()
Releases GPU resource data (implementation).
Declaration
protected virtual void OnReleaseGPU() override
Overrides
Present(bool vsync)
Present back buffer to the output.
Declaration
public virtual void Present(bool vsync) override
Parameters
bool
vsync
True if use vertical synchronization to lock frame rate. |
Overrides
Resize(int32 width, int32 height)
Resize output back buffer.
Declaration
public virtual bool Resize(int32 width, int32 height) override
Parameters
int32
width
New output width (in pixels). |
int32
height
New output height (in pixels). |
Returns
bool
True if cannot resize the buffers, otherwise false. |
Overrides
SetFullscreen(bool isFullscreen)
Set the fullscreen state.
Declaration
public virtual void SetFullscreen(bool isFullscreen) override
Parameters
bool
isFullscreen
Fullscreen mode to apply |