Monado OpenXR Runtime
render_gfx_target_resources Struct Reference

Each rendering (render_gfx) render to one or more targets (render_gfx_target_resources), the target points to one render pass and it's pipelines (render_gfx_render_pass). More...

#include <render/render_interface.h>

Collaboration diagram for render_gfx_target_resources:

Public Member Functions

bool render_gfx_target_resources_init (struct render_gfx_target_resources *rtr, struct render_resources *r, struct render_gfx_render_pass *rgrp, VkImageView target, VkExtent2D extent)
 Init a target resource struct, caller has to keep target alive until closed. More...
 
void render_gfx_target_resources_close (struct render_gfx_target_resources *rtr)
 Frees all resources held by the target, does not free the struct itself. More...
 

Data Fields

struct render_resourcesr
 Collections of static resources. More...
 
struct render_gfx_render_passrgrp
 Render pass. More...
 
VkExtent2D extent
 
VkFramebuffer framebuffer
 Framebuffer for this target, depends on given VkImageView. More...
 

Detailed Description

Each rendering (render_gfx) render to one or more targets (render_gfx_target_resources), the target points to one render pass and it's pipelines (render_gfx_render_pass).

It is up to the code using these to do reuse of render passes and ensure they match.

See also
Comp_render_gfx

Field Documentation

◆ framebuffer

VkFramebuffer render_gfx_target_resources::framebuffer

Framebuffer for this target, depends on given VkImageView.

Referenced by render_gfx_target_resources_close().

◆ r

struct render_resources* render_gfx_target_resources::r

Collections of static resources.

Referenced by render_gfx_target_resources_init(), and vk_from_rtr().

◆ rgrp


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