Class DX11SwapChainRenderBufferProxy
- Namespace
- HelixToolkit.SharpDX.Render
- Assembly
- HelixToolkit.SharpDX.dll
public class DX11SwapChainRenderBufferProxy : DX11RenderBufferProxyBase, IDisposable
- Inheritance
-
DX11SwapChainRenderBufferProxy
- Implements
- Inherited Members
Constructors
DX11SwapChainRenderBufferProxy(nint, IDeviceResources)
Initializes a new instance of the DX11SwapChainRenderBufferProxy class.
public DX11SwapChainRenderBufferProxy(nint surfacePointer, IDeviceResources deviceResource)
Parameters
surfacePointernintThe surface pointer.
deviceResourceIDeviceResources
DX11SwapChainRenderBufferProxy(nint, IDeviceResources, bool)
Initializes a new instance of the DX11SwapChainRenderBufferProxy class.
public DX11SwapChainRenderBufferProxy(nint surfacePointer, IDeviceResources deviceResource, bool useDepthStencilBuffer)
Parameters
surfacePointernintThe surface pointer.
deviceResourceIDeviceResourcesuseDepthStencilBufferbool
Fields
surfacePtr
The surface pointer
protected readonly nint surfacePtr
Field Value
Properties
SwapChain
Gets the swap chain.
public SwapChain1? SwapChain { get; }
Property Value
- SwapChain1
The swap chain.
Methods
CreateSwapChainDescription()
Creates the swap chain description.
protected virtual SwapChainDescription1 CreateSwapChainDescription()
Returns
- SwapChainDescription1
A swap chain description
Remarks
This method can be overloaded in order to modify default parameters.
DisposeAndClear()
Must release swapchain at last after all its created resources have been released.
public void DisposeAndClear()
OnCreateBackBuffer(int, int)
Called when [create render target and depth buffers].
protected override ShaderResourceViewProxy? OnCreateBackBuffer(int width, int height)
Parameters
Returns
OnDispose(bool)
Releases unmanaged and - optionally - managed resources.
protected override void OnDispose(bool disposeManagedResources)
Parameters
disposeManagedResourcesbooltrueto release both managed and unmanaged resources;falseto release only unmanaged resources.
Present()
Presents this instance.
public override bool Present()