Lysa  0.0
Lysa 3D Engine
DisplayAttachment Class Reference
+ Inheritance diagram for DisplayAttachment:

Public Member Functions

 DisplayAttachment (const RendererConfiguration &config, const vireo::ImageFormat outputFormat, const std::string &shader="", void *data=nullptr, const uint32 dataSize=0)
 
void setAttachment (const std::shared_ptr< vireo::RenderTarget > &attachment)
 
- Public Member Functions inherited from PostProcessing
 PostProcessing (const RendererConfiguration &config, vireo::ImageFormat outputFormat, const std::string &fragShaderName, void *data=nullptr, uint32 dataSize=0, const std::string &name="")
 
void update (uint32 frameIndex) override
 
virtual void render (vireo::CommandList &commandList, const std::shared_ptr< vireo::RenderTarget > &colorAttachment, const std::shared_ptr< vireo::RenderTarget > &depthAttachment, uint32 frameIndex)
 
virtual void render (vireo::CommandList &commandList, const std::shared_ptr< vireo::RenderTarget > &colorAttachment, uint32 frameIndex)
 
virtual void resize (const vireo::Extent &extent)
 
void resize (const vireo::Extent &extent, const std::shared_ptr< vireo::CommandList > &commandList) override
 
virtual std::shared_ptr< vireo::RenderTarget > getColorAttachment (const uint32 frameIndex)
 
const auto & getFragShaderName () const
 
- Public Member Functions inherited from Renderpass
 Renderpass (const RendererConfiguration &config, const std::string &name)
 
virtual ~Renderpass () = default
 
 Renderpass (Renderpass &) = delete
 
Renderpass & operator= (Renderpass &) = delete
 

Additional Inherited Members

- Static Public Member Functions inherited from Renderpass
static void destroyShaderModules ()
 
- Static Public Attributes inherited from PostProcessing
static const std::string VERTEX_SHADER {"quad.vert"}
 
static constexpr vireo::DescriptorIndex BINDING_PARAMS {0}
 
static constexpr vireo::DescriptorIndex BINDING_DATA {1}
 
static constexpr vireo::DescriptorIndex BINDING_TEXTURES {2}
 
static constexpr int INPUT_BUFFER {0}
 
static constexpr int DEPTH_BUFFER {1}
 
static constexpr int BLOOM_BUFFER {2}
 
static constexpr int TEXTURES_COUNT {BLOOM_BUFFER+1}
 
- Protected Member Functions inherited from Renderpass
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 initRendering (vireo::CommandList &commandList, const std::shared_ptr< vireo::Image > &image, const std::shared_ptr< vireo::GraphicPipeline > &pipeline, const std::shared_ptr< vireo::DescriptorSet > &sceneDescriptorSet, const std::shared_ptr< vireo::DescriptorSet > &descriptorSet)
 
- Protected Attributes inherited from PostProcessing
vireo::GraphicPipelineConfiguration pipelineConfig
 
vireo::RenderingConfiguration renderingConfig
 
const std::string fragShaderName
 
uint8 dummyData {0}
 
void * data {nullptr}
 
std::shared_ptr< vireo::Buffer > dataUniform {nullptr}
 
std::vector< FrameDataframesData
 
std::vector< std::shared_ptr< vireo::Image > > textures
 
std::shared_ptr< vireo::DescriptorLayout > descriptorLayout
 
std::shared_ptr< vireo::GraphicPipeline > pipeline
 
- Protected Attributes inherited from Renderpass
const std::string name
 
const RendererConfigurationconfig
 
- Static Protected Attributes inherited from Renderpass
static std::mutex shaderModulesMutex
 
static std::unordered_map< std::string, std::shared_ptr< vireo::ShaderModule > > shaderModules
 

Constructor & Destructor Documentation

DisplayAttachment ( const RendererConfiguration config,
const vireo::ImageFormat  outputFormat,
const std::string &  shader = "",
void *  data = nullptr,
const uint32  dataSize = 0 
)
inline

Member Function Documentation

void setAttachment ( const std::shared_ptr< vireo::RenderTarget > &  attachment)
inline