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

#include <RadientRenderer.h>

Inheritance diagram for Diligent::IRadientRenderTarget:
Diligent.IObject

Public Member Functions

virtual const RadientRenderTargetDesc &DILIGENT_CALL_TYPE GetDesc () const =0
 Returns the render target description.
virtual void DILIGENT_CALL_TYPE GetSize (RadientExtent2D &Size) const =0
virtual ITextureView *DILIGENT_CALL_TYPE GetColorRTV ()=0
virtual ITextureView *DILIGENT_CALL_TYPE GetDepthDSV ()=0
virtual ISwapChain *DILIGENT_CALL_TYPE GetSwapChain ()=0
 Returns local swap chain when one exists.
Public Member Functions inherited from Diligent.IObject
virtual void DILIGENT_CALL_TYPE QueryInterface (const INTERFACE_ID &IID, IObject **ppInterface)=0
 Queries the specific interface.
template<typename DerivedType, typename = typename std::enable_if<std::is_base_of<IObject, DerivedType>::value>::type>
void QueryInterface (const INTERFACE_ID &IID, DerivedType **ppInterface)
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

Immutable render target resource association.

To replace explicit texture views, create a new target and assign it to the view. A swap-chain target follows the swap chain's current buffers and dimensions. Resize the swap chain between frames; the Radient target does not need to be recreated.

Member Function Documentation

◆ GetColorRTV()

virtual ITextureView *DILIGENT_CALL_TYPE Diligent::IRadientRenderTarget::GetColorRTV ( )
pure virtual

Returns the explicit color RTV, or the swap chain's current back-buffer RTV if no explicit view was supplied. Returns null if neither is available. The returned pointer is borrowed; query it again after presentation or resizing.

◆ GetDepthDSV()

virtual ITextureView *DILIGENT_CALL_TYPE Diligent::IRadientRenderTarget::GetDepthDSV ( )
pure virtual

Returns the explicit depth DSV, or the swap chain's depth-buffer DSV if no explicit view was supplied. Returns null if neither is available. The returned pointer is borrowed; query it again after resizing.

◆ GetSize()

virtual void DILIGENT_CALL_TYPE Diligent::IRadientRenderTarget::GetSize ( RadientExtent2D & Size) const
pure virtual

Writes the current output dimensions in pixels to Size.

An explicit color RTV determines the size from its selected mip level. Otherwise, the current swap-chain dimensions are used. Writes zero width and height when neither a color RTV nor a swap chain is supplied.

Parameters
[out]Size- Current output dimensions.