Monado OpenXR Runtime
render_gfx_render_pass Struct Reference

A render pass while not depending on a VkFramebuffer does depend on the format of the target image(s), and other options for the render pass. More...

#include <render/render_interface.h>

Collaboration diagram for render_gfx_render_pass:

Public Member Functions

bool render_gfx_render_pass_init (struct render_gfx_render_pass *rgrp, struct render_resources *r, VkFormat format, VkAttachmentLoadOp load_op, VkImageLayout final_layout)
 Creates all resources held by the render pass, does not free the struct itself. More...
 
void render_gfx_render_pass_close (struct render_gfx_render_pass *rgrp)
 Frees all resources held by the render pass, does not free the struct itself. More...
 

Data Fields

struct render_resourcesr
 
VkFormat format
 The format of the image(s) we are rendering to. More...
 
VkSampleCountFlagBits sample_count
 Sample count for this render pass. More...
 
VkAttachmentLoadOp load_op
 Load op used on the attachment(s). More...
 
VkImageLayout final_layout
 Final layout of the target image(s). More...
 
VkRenderPass render_pass
 Render pass used for rendering. More...
 
struct {
   VkPipeline   pipeline
 Pipeline layout used for mesh, without timewarp. More...
 
   VkPipeline   pipeline_timewarp
 Pipeline layout used for mesh, with timewarp. More...
 
mesh
 
struct {
   VkPipeline   cylinder_premultiplied_alpha
 
   VkPipeline   cylinder_unpremultiplied_alpha
 
   VkPipeline   equirect2_premultiplied_alpha
 
   VkPipeline   equirect2_unpremultiplied_alpha
 
   VkPipeline   proj_premultiplied_alpha
 
   VkPipeline   proj_unpremultiplied_alpha
 
   VkPipeline   quad_premultiplied_alpha
 
   VkPipeline   quad_unpremultiplied_alpha
 
layer
 

Detailed Description

A render pass while not depending on a VkFramebuffer does depend on the format of the target image(s), and other options for the render pass.

These are used to create a VkRenderPass, all VkFramebuffer(s) and VkPipeline depends on the VkRenderPass so hang off this struct.

Field Documentation

◆ final_layout

VkImageLayout render_gfx_render_pass::final_layout

Final layout of the target image(s).

◆ format

VkFormat render_gfx_render_pass::format

The format of the image(s) we are rendering to.

◆ load_op

VkAttachmentLoadOp render_gfx_render_pass::load_op

Load op used on the attachment(s).

◆ pipeline

VkPipeline render_gfx_render_pass::pipeline

Pipeline layout used for mesh, without timewarp.

Referenced by render_gfx_render_pass_close().

◆ pipeline_timewarp

VkPipeline render_gfx_render_pass::pipeline_timewarp

Pipeline layout used for mesh, with timewarp.

Referenced by render_gfx_render_pass_close().

◆ render_pass

VkRenderPass render_gfx_render_pass::render_pass

Render pass used for rendering.

Referenced by render_gfx_render_pass_close().

◆ sample_count

VkSampleCountFlagBits render_gfx_render_pass::sample_count

Sample count for this render pass.


The documentation for this struct was generated from the following file: