![]() |
Raven Engine v0.1
|
Interface representing a GPU render pass abstraction. More...
#include <RenderPass.h>
Public Member Functions | |
| virtual | ~RenderPass ()=default |
| virtual RenderPassSpecification & | GetSpecification ()=0 |
| Access mutable render pass specification. | |
| virtual const RenderPassSpecification & | GetSpecification () const =0 |
| Access const render pass specification. | |
| virtual void | Bake ()=0 |
| Prepare the render pass after setting pipeline and inputs. | |
| virtual void | SetInput (Ref< UniformBuffer > uniformBuffer, std::string_view name)=0 |
| Bind a uniform buffer as input by name. | |
| virtual void | SetInput (Ref< Texture2D > texture, std::string_view imageName, std::string_view samplerName)=0 |
| Bind a texture with associated sampler by name. | |
| virtual Ref< Image2D > | GetOutput (u32 index)=0 |
| Retrieve output image at specified index (color attachments). | |
| virtual Ref< Image2D > | GetDepthOutput ()=0 |
| Retrieve the depth attachment output image. | |
| virtual Ref< Pipeline > | GetPipeline () const =0 |
| Get the associated pipeline. | |
| Public Member Functions inherited from Raven::Castable< RenderPass > | |
| T & | As () |
| Non-const version of As<T>(), for casting to a non-const target type. | |
Static Public Member Functions | |
| static Ref< RenderPass > | Create (const RenderPassSpecification &spec) |
| Factory method to create a RenderPass from specification. | |
Interface representing a GPU render pass abstraction.
RenderPass encapsulates a specific rendering phase. It manages resource bindings, pipeline association, and provides output targets.
Usage:
|
virtualdefault |
|
pure virtual |
Prepare the render pass after setting pipeline and inputs.
This typically allocates or updates GPU resources internally.
Implemented in Raven::VulkanRenderPass.
|
static |
Factory method to create a RenderPass from specification.
| spec | The render pass configuration. |
Retrieve the depth attachment output image.
Implemented in Raven::VulkanRenderPass.
Retrieve output image at specified index (color attachments).
| index | Output attachment index. |
Implemented in Raven::VulkanRenderPass.
Get the associated pipeline.
Implemented in Raven::VulkanRenderPass.
|
pure virtual |
Access const render pass specification.
Implemented in Raven::VulkanRenderPass.
|
pure virtual |
Access mutable render pass specification.
Implemented in Raven::VulkanRenderPass.
|
pure virtual |
Bind a texture with associated sampler by name.
| texture | Texture2D to bind. |
| imageName | Name of the texture image in shader. |
| samplerName | Name of the sampler in shader. |
Implemented in Raven::VulkanRenderPass.
|
pure virtual |
Bind a uniform buffer as input by name.
| uniformBuffer | Uniform buffer to bind. |
| name | Name identifier in the shader. |
Implemented in Raven::VulkanRenderPass.