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

Scene renderer interface. More...

#include <RadientRenderer.h>

Inheritance diagram for Diligent::IRadientRenderer:
Diligent.IObject

Public Member Functions

virtual const RadientRendererDesc &DILIGENT_CALL_TYPE GetDesc () const =0
 Returns the renderer description.
virtual RADIENT_STATUS DILIGENT_CALL_TYPE CreateRenderTarget (const RadientRenderTargetDesc &Desc, IRadientRenderTarget **ppTarget)=0
virtual RADIENT_STATUS DILIGENT_CALL_TYPE CreateView (const RadientViewDesc &Desc, IRadientView **ppView)=0
virtual RADIENT_STATUS DILIGENT_CALL_TYPE BeginFrame (const RadientFrameAttribs &Attribs)=0
virtual RADIENT_STATUS DILIGENT_CALL_TYPE Render (const RadientRenderAttribs &Attribs)=0
virtual RADIENT_STATUS DILIGENT_CALL_TYPE EndFrame ()=0
 Ends the current application render frame.
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

Scene renderer interface.

Member Function Documentation

◆ BeginFrame()

virtual RADIENT_STATUS DILIGENT_CALL_TYPE Diligent::IRadientRenderer::BeginFrame ( const RadientFrameAttribs & Attribs)
pure virtual

Begins an application render frame.

Zero or more views may be rendered before EndFrame() is called. Frames may not be nested. After this method succeeds, EndFrame() must be called regardless of the status returned by Render().

◆ CreateRenderTarget()

virtual RADIENT_STATUS DILIGENT_CALL_TYPE Diligent::IRadientRenderer::CreateRenderTarget ( const RadientRenderTargetDesc & Desc,
IRadientRenderTarget ** ppTarget )
pure virtual

Creates a render target. Returns RADIENT_STATUS_INVALID_ARGUMENT if an explicit texture view has an incompatible type. On failure, the output target is null.

◆ CreateView()

virtual RADIENT_STATUS DILIGENT_CALL_TYPE Diligent::IRadientRenderer::CreateView ( const RadientViewDesc & Desc,
IRadientView ** ppView )
pure virtual

Creates a persistent render view owned by this renderer. The view can only be rendered by this renderer, including after its scene or render target changes. The view does not retain the renderer.

◆ Render()

virtual RADIENT_STATUS DILIGENT_CALL_TYPE Diligent::IRadientRenderer::Render ( const RadientRenderAttribs & Attribs)
pure virtual

Renders one view in the current application frame. Returns RADIENT_STATUS_PENDING when the view is rendered with ready content while renderer-specific drawable resources are still being prepared asynchronously. BeginFrame() must have succeeded before this method is called. Returns RADIENT_STATUS_INVALID_ARGUMENT if the view was created by another renderer; the view and scene are not modified in this case.

The scene follows the single-renderer lifetime restriction documented by IRadientScene. Rendering a scene previously rendered by another renderer may return RADIENT_STATUS_INVALID_OPERATION. This call requires exclusive access to the scene as described by IRadientScene's synchronization contract.