Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
|
Base class for rasterized render stages (no built-in functionality) More...
#include <foray_rasterizedRenderStage.hpp>
Public Member Functions | |
RasterizedRenderStage ()=default | |
virtual void | SetupDescriptors () |
virtual void | CreateDescriptorSets () |
virtual void | UpdateDescriptors () |
virtual void | CreatePipelineLayout () |
![]() | |
RenderStage ()=default | |
virtual void | RecordFrame (VkCommandBuffer cmdBuffer, base::FrameRenderInfo &renderInfo) |
Records a frame to cmdBuffer. | |
virtual void | Destroy () |
Destroy the render stage. Finalizes all components. | |
virtual void | Resize (const VkExtent2D &extent) |
Default implementation accesses mImageOutputs and calls ManagedImage::Resize(extent) on any set image. | |
std::vector< core::ManagedImage * > | GetImageOutputs () |
Gets a vector to all color attachments that will be included in a texture array and can be referenced in the shader pass. | |
core::ManagedImage * | GetImageOutput (std::string_view name, bool noThrow=false) |
Gets an image output. | |
virtual void | OnShadersRecompiled (const std::unordered_set< uint64_t > &recompiled) |
Notifies the stage that the shader compiler instance has recompiled a shader. | |
virtual | ~RenderStage () |
Protected Attributes | |
VkFramebuffer | mFrameBuffer = nullptr |
VkRenderPass | mRenderpass = nullptr |
core::DescriptorSet | mDescriptorSet |
VkPipeline | mPipeline = nullptr |
util::PipelineLayout | mPipelineLayout |
![]() | |
std::unordered_map< std::string, core::ManagedImage * > | mImageOutputs |
Inheriting types should emplace their images onto this collection to provide them in GetImageOutput interface. | |
std::vector< uint64_t > | mShaderKeys |
Inheriting types should emplace their shader keys onto this collection such that if a shader has been recompiled, ReloadShaders() will be called. | |
core::Context * | mContext = nullptr |
Context object the renderstage is built upon. | |
Additional Inherited Members | |
![]() | |
virtual void | ReloadShaders () |
Override this to reload all shaders and rebuild pipelines after a registered shader has been recompiled. | |
virtual void | DestroyOutputImages () |
Calls Destroy() on any image in mImageOutputs and clears mImageOutputs. | |
Base class for rasterized render stages (no built-in functionality)
|
default |
|
inlinevirtual |
Reimplemented in foray::stages::GBufferStage.
|
inlinevirtual |
Reimplemented in foray::stages::GBufferStage.
|
inlinevirtual |
Reimplemented in foray::stages::GBufferStage.
|
inlinevirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |