Class GPUSwapChainDX11
Graphics Device rendering output for DirectX 11 backend.
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/GraphicsDevice/DirectX/DX11/GPUSwapChainDX11.h
Syntax
public class GPUSwapChainDX11 : public GPUResourceDX11
Constructors
GPUSwapChainDX11(GPUDeviceDX11* device, Window* window)
Declaration
public GPUSwapChainDX11(GPUDeviceDX11* device, Window* window)
Parameters
GPUDeviceDX11
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
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
GetResource()
Gets DirectX 11 resource object handle.
Declaration
public virtual ID3D11Resource* GetResource() override
Returns
ID3D11Resource
|
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() final 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 |