Vireo  0.0
Vireo 3D Rendering Hardware Interface
RenderTarget Class Referenceabstract

Detailed Description

A color or depth render attachment

Manual page : Render pass

+ Inheritance diagram for RenderTarget:

Public Member Functions

auto getImage () const
 
auto getType () const
 
 RenderTarget (const RenderTargetType type, const std::shared_ptr< Image > &image)
 
virtual std::shared_ptr< RenderTarget > fromLayer (uint32_t imageLayer) = 0
 
virtual ~RenderTarget () = default
 
 RenderTarget (RenderTarget &) = delete
 
RenderTarget & operator= (const RenderTarget &) = delete
 

Constructor & Destructor Documentation

RenderTarget ( const RenderTargetType  type,
const std::shared_ptr< Image > &  image 
)
inline

Constructs a render target wrapping an existing image.

Parameters
typeIntended attachment role (color, depth, or depth-stencil).
imageThe underlying image to use as the attachment.
virtual ~RenderTarget ( )
virtualdefault
RenderTarget ( RenderTarget &  )
delete

Member Function Documentation

virtual std::shared_ptr<RenderTarget> fromLayer ( uint32_t  imageLayer)
pure virtual

Creates a virtual render target with a view/rtv on a specific layer

Parameters
imageLayer
Returns
auto getImage ( ) const
inline

Return the associated image

auto getType ( ) const
inline

Return the type of the attachmentN

RenderTarget& operator= ( const RenderTarget &  )
delete