SPARK  0.1.0
A general purpose game engine written in C++.
Loading...
Searching...
No Matches
spark::render::InputAttachmentMapping< InputAttachmentMappingSourceType > Class Template Referenceabstract

Public Types

using InputAttachmentMappingSource = InputAttachmentMappingSourceType
 

Public Member Functions

virtual const InputAttachmentMappingSource * source () const noexcept=0
 Gets the source of the input attachment render target.
 
virtual const RenderTargetrenderTarget () const noexcept=0
 Gets a reference to the render target mapped to this input attachment.
 
virtual unsigned location () const noexcept=0
 Gets the location of the input attachment, the render target will be bound to.
 

Member Function Documentation

◆ location()

template<typename InputAttachmentMappingSourceType >
virtual unsigned spark::render::InputAttachmentMapping< InputAttachmentMappingSourceType >::location ( ) const
nodiscardpure virtualnoexcept

Gets the location of the input attachment, the render target will be bound to.

Returns
The location of the input attachment, the render target will be bound to.

The locations of all input attachments for a frame buffer must be within a continuous domain, starting at 0. A frame buffer validates the locations when it is initialized and will raise an exception, if a location is either not mapped or assigned multiple times.

Implemented in spark::render::vk::VulkanInputAttachmentMapping.

◆ renderTarget()

template<typename InputAttachmentMappingSourceType >
virtual const RenderTarget & spark::render::InputAttachmentMapping< InputAttachmentMappingSourceType >::renderTarget ( ) const
nodiscardpure virtualnoexcept

Gets a reference to the render target mapped to this input attachment.

Returns
A RenderTarget mapped to this input attachment.

Implemented in spark::render::vk::VulkanInputAttachmentMapping.

◆ source()

template<typename InputAttachmentMappingSourceType >
virtual const InputAttachmentMappingSource * spark::render::InputAttachmentMapping< InputAttachmentMappingSourceType >::source ( ) const
nodiscardpure virtualnoexcept

Gets the source of the input attachment render target.

Returns
The InputAttachmentMappingSource of the input attachment render target.

Implemented in spark::render::vk::VulkanInputAttachmentMapping.