Post-processing pass that upscales the rendered frame to the output resolution. Supports bilinear upscaling and AMD FidelityFX Super Resolution 1.0 (FSR EASU).
|
| | FrameScalingPass (const RendererConfiguration &config, const vireo::ImageFormat outputFormat) |
| |
| void | resize (const vireo::Extent &extent, const std::shared_ptr< vireo::CommandList > &commandList) override |
| |
| | PostProcessingCompute (const RendererConfiguration &config, vireo::ImageFormat outputFormat, const std::string &compShaderName, void *data=nullptr, uint32 dataSize=0, const std::string &name="") |
| |
| void | update (uint32 frameIndex) override |
| |
| virtual void | render (const std::shared_ptr< vireo::CommandList > &commandList, const std::shared_ptr< vireo::Image > &colorAttachment, uint32 frameIndex) |
| |
| virtual void | render (const std::shared_ptr< vireo::CommandList > &commandList, const std::shared_ptr< vireo::Image > &colorAttachment, const std::shared_ptr< vireo::Image > &depthAttachment, uint32 frameIndex) |
| |
| virtual void | render (const std::shared_ptr< vireo::CommandList > &commandList, const SceneFrameData &scene, const std::shared_ptr< vireo::Image > &depthAttachment, uint32 frameIndex) |
| |
| std::shared_ptr< vireo::Image > | getColorAttachment (const uint32 frameIndex) const |
| |
| std::shared_ptr< vireo::RenderTarget > | getColorRenderTarget (const uint32 frameIndex) |
| |
| virtual vireo::ImageFormat | getColorAttachmentFormat () const |
| |
| const auto & | getCompShaderName () const |
| |
| | Renderpass (const RendererConfiguration &config, const std::string &name) |
| |
| virtual | ~Renderpass () = default |
| |
| | Renderpass (Renderpass &) = delete |
| |
| Renderpass & | operator= (Renderpass &) = delete |
| |
|
| static void | destroyShaderModules () |
| |
| static constexpr vireo::DescriptorIndex | BINDING_PARAMS {0} |
| |
| static constexpr vireo::DescriptorIndex | BINDING_DATA {1} |
| |
| static constexpr vireo::DescriptorIndex | BINDING_OUTPUT {2} |
| |
| static constexpr vireo::DescriptorIndex | BINDING_TEXTURES {3} |
| |
| static constexpr int | INPUT_BUFFER {0} |
| |
| static constexpr int | DEPTH_BUFFER {1} |
| |
| static constexpr int | BLOOM_BUFFER {2} |
| |
| static constexpr int | OPT1_BUFFER {3} |
| |
| static constexpr int | OPT2_BUFFER {4} |
| |
| static constexpr int | TEXTURES_COUNT {OPT2_BUFFER + 1} |
| |
| static constexpr uint32 | TILE_SIZE {16} |
| |
| virtual void | render (const std::shared_ptr< vireo::CommandList > &commandList, const std::shared_ptr< vireo::Image > &colorAttachment, const std::shared_ptr< vireo::Image > &depthAttachment, const std::shared_ptr< vireo::Image > &bloomColorAttachment, uint32 frameIndex) |
| |
| std::shared_ptr< vireo::ShaderModule > | loadShader (const std::string &shaderName) const |
| |
| void | init (vireo::GraphicPipelineConfiguration &pipelineConfig, vireo::RenderingConfiguration &renderingConfig, const std::shared_ptr< vireo::DescriptorLayout > &descriptorLayout, bool withStencil) |
| |
| void | init (vireo::GraphicPipelineConfiguration &pipelineConfig, vireo::RenderingConfiguration &renderingConfig, bool withStencil) const |
| |
| void | initForScene (vireo::GraphicPipelineConfiguration &pipelineConfig, vireo::RenderingConfiguration &renderingConfig, bool withStencil) const |
| |
| void | initRendering (const std::shared_ptr< vireo::CommandList > &commandList, const std::shared_ptr< vireo::GraphicPipeline > &pipeline, const std::shared_ptr< vireo::DescriptorSet > &sceneDescriptorSet, const std::shared_ptr< vireo::DescriptorSet > &descriptorSet) |
| |
| void | initCompute (const std::shared_ptr< vireo::CommandList > &commandList, const std::shared_ptr< vireo::ComputePipeline > &pipeline, const std::shared_ptr< vireo::DescriptorSet > &sceneDescriptorSet, const std::shared_ptr< vireo::DescriptorSet > &descriptorSet) |
| |
| const vireo::ImageFormat | outputFormat |
| |
| const std::string | compShaderName |
| |
| uint8 | dummyData {0} |
| |
| void * | data {nullptr} |
| |
| std::vector< FrameData > | framesData |
| |
| std::vector< std::shared_ptr< vireo::Image > > | textures |
| |
| std::shared_ptr< vireo::DescriptorLayout > | descriptorLayout |
| |
| std::shared_ptr< vireo::Pipeline > | pipeline |
| |
| const std::string | name |
| |
| const RendererConfiguration & | config |
| |
| static std::mutex | shaderModulesMutex |
| |
| static std::unordered_map< std::string, std::shared_ptr< vireo::ShaderModule > > | shaderModules |
| |