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

Represents the source for an input attachment mapping. More...

#include <InputAttachementMapping.h>

Inheritance diagram for spark::render::InputAttachmentMappingSource< FrameBufferType >:
spark::render::RenderPass< RenderPipelineType, FrameBufferType, InputAttachmentMappingType >

Public Types

using FrameBuffer = FrameBufferType
 

Public Member Functions

virtual const FrameBufferType & frameBuffer (unsigned buffer) const =0
 Gets the frame buffer with the index provided in buffer.
 

Detailed Description

template<typename FrameBufferType>
class spark::render::InputAttachmentMappingSource< FrameBufferType >

Represents the source for an input attachment mapping.

Template Parameters
FrameBufferTypeType of the frame buffer. (inherits from IFrameBuffer)

This interface is implemented by a IRenderPass to return the frame buffer for a given back buffer. It is called by a IFrameBuffer during initialization or re-creation, in order to resolve input attachment dependencies.

Member Function Documentation

◆ frameBuffer()

template<typename FrameBufferType >
virtual const FrameBufferType & spark::render::InputAttachmentMappingSource< FrameBufferType >::frameBuffer ( unsigned buffer) const
nodiscardpure virtual

Gets the frame buffer with the index provided in buffer.

Returns
The IFrameBuffer with the index provided in buffer.
Exceptions
base::ArgumentOutOfRangeExceptionif buffer does not maps to a valid frame buffer.

Implemented in spark::render::vk::VulkanRenderPass.