Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::ISwapChainD3D12 Struct Referenceabstract

Exposes Direct3D12-specific functionality of a swap chain. More...

#include <SwapChainD3D12.h>

Inheritance diagram for Diligent::ISwapChainD3D12:
Diligent::ISwapChain Diligent.IObject

Public Member Functions

virtual IDXGISwapChain *DILIGENT_CALL_TYPE GetDXGISwapChain ()=0
 Returns a pointer to the IDXGISwapChain interface of the internal DXGI object.
 
- Public Member Functions inherited from Diligent::ISwapChain
virtual void DILIGENT_CALL_TYPE Present (Uint32 SyncInterval=1)=0
 Presents a rendered image to the user.
 
virtual const SwapChainDesc &DILIGENT_CALL_TYPE GetDesc () const =0
 Returns the swap chain description.
 
virtual void DILIGENT_CALL_TYPE Resize (Uint32 NewWidth, Uint32 NewHeight, SURFACE_TRANSFORM NewTransform=SURFACE_TRANSFORM_OPTIMAL)=0
 Changes the swap chain size.
 
virtual void DILIGENT_CALL_TYPE SetFullscreenMode (const DisplayModeAttribs &DisplayMode)=0
 Sets fullscreen mode (only supported on Win32 platform)
 
virtual void DILIGENT_CALL_TYPE SetWindowedMode ()=0
 Sets windowed mode (only supported on Win32 platform)
 
virtual void DILIGENT_CALL_TYPE SetMaximumFrameLatency (Uint32 MaxLatency)=0
 Sets the maximum number of frames that the swap chain is allowed to queue for rendering.
 
virtual ITextureView *DILIGENT_CALL_TYPE GetCurrentBackBufferRTV ()=0
 Returns render target view of the current back buffer in the swap chain.
 
virtual ITextureView *DILIGENT_CALL_TYPE GetDepthBufferDSV ()=0
 Returns depth-stencil view of the depth buffer.
 
- Public Member Functions inherited from Diligent.IObject
virtual void DILIGENT_CALL_TYPE QueryInterface (const INTERFACE_ID &IID, IObject **ppInterface)=0
 Queries the specific interface.
 
virtual ReferenceCounterValueType DILIGENT_CALL_TYPE AddRef ()=0
 Increments the number of strong references by 1.
 
virtual ReferenceCounterValueType DILIGENT_CALL_TYPE Release ()=0
 
virtual IReferenceCounters *DILIGENT_CALL_TYPE GetReferenceCounters () const =0
 

Detailed Description

Exposes Direct3D12-specific functionality of a swap chain.

Member Function Documentation

◆ GetDXGISwapChain()

virtual IDXGISwapChain *DILIGENT_CALL_TYPE Diligent::ISwapChainD3D12::GetDXGISwapChain ( )
pure virtual

Returns a pointer to the IDXGISwapChain interface of the internal DXGI object.

The method does NOT increment the reference counter of the returned object, so Release() must not be called.