SPARK
0.1.0
A general purpose game engine written in C++.
|
Interface for a render pass. More...
#include <RenderPass.h>
Public Member Functions | |
virtual void | begin (unsigned int buffer)=0 |
Begins the render pass. | |
virtual void | end () const =0 |
Ends the render pass. | |
const IFrameBuffer & | activeFrameBuffer () const |
Gets the active frame buffer from the render pass. | |
std::vector< const IFrameBuffer * > | frameBuffers () const noexcept |
Gets all frame buffers owned by the render pass. | |
virtual void | resizeFrameBuffers (const math::Vector2< unsigned int > &new_render_area)=0 |
Resets the frame buffers owned by the render pass. | |
std::vector< const IRenderPipeline * > | pipelines () const noexcept |
Gets all render pipelines owned by the render pass. | |
virtual const RenderTarget & | renderTarget (unsigned int location) const =0 |
Gets the render target at the specified location . | |
virtual std::span< const RenderTarget > | renderTargets () const noexcept=0 |
Gets all render targets the render pass is rendering to. | |
virtual bool | hasPresentRenderTarget () const noexcept=0 |
Checks if one of the render targets is used for presentation in a ISwapChain. | |
virtual MultiSamplingLevel | multiSamplingLevel () const noexcept=0 |
Gets the number of samples the render targets are sampled with. | |
void | updateAttachments (const IDescriptorSet &descriptor_set) const |
Resolves the input attachments mapped to the render pass and updates them on the descriptor set provided with descriptor_set . | |
![]() | |
virtual const std::string & | name () const noexcept=0 |
Gets the name of the state resource. | |
Interface for a render pass.
|
inlinenodiscard |
Gets the active frame buffer from the render pass.
k2::base::RenderPassNotStartedException | if the render pass has not been started. |
|
pure virtual |
Begins the render pass.
buffer | The index of the back buffer to render to. Typically, the values returned by ISwapChain::swapBackBuffer() is used. |
base::RenderPassAlreadyStartedException | if the render pass has already been started. |
base::ArgumentOutOfRangeException | if buffer is out of range. |
|
pure virtual |
Ends the render pass.
base::RenderPassNotStartedException | if the render pass has not been started. |
Implemented in spark::render::vk::VulkanRenderPass.
|
inlinenodiscardnoexcept |
Gets all frame buffers owned by the render pass.
|
nodiscardpure virtualnoexcept |
Checks if one of the render targets is used for presentation in a ISwapChain.
true
if one of the render targets is used for presentation in a ISwapChain, false
otherwise. Implemented in spark::render::vk::VulkanRenderPass.
|
nodiscardpure virtualnoexcept |
Gets the number of samples the render targets are sampled with.
Implemented in spark::render::vk::VulkanRenderPass.
|
inlinenodiscardnoexcept |
Gets all render pipelines owned by the render pass.
|
nodiscardpure virtual |
Gets the render target at the specified location
.
location | The location of the render target to get. |
location
.
|
nodiscardpure virtualnoexcept |
Gets all render targets the render pass is rendering to.
Implemented in spark::render::vk::VulkanRenderPass.
|
pure virtual |
Resets the frame buffers owned by the render pass.
new_render_area | The size of the render area the frame buffers should be resized to. |
|
inline |
Resolves the input attachments mapped to the render pass and updates them on the descriptor set provided with descriptor_set
.
descriptor_set | The IDescriptorSet to update the input attachments on. |