Monado OpenXR Runtime
Data Structures | Macros | Functions
comp_compositor.h File Reference

Main compositor written using Vulkan header. More...

#include "xrt/xrt_gfx_vk.h"
#include "util/u_threading.h"
#include "main/comp_settings.h"
#include "main/comp_window.h"
#include "main/comp_renderer.h"
Include dependency graph for comp_compositor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  comp_swapchain_image
 A single swapchain image, holds the needed state for tracking image usage. More...
 
struct  comp_swapchain
 A swapchain that is almost a one to one mapping to a OpenXR swapchain. More...
 
struct  comp_compositor
 Main compositor struct tying everything in the compositor together. More...
 

Macros

#define NUM_FRAME_TIMES   50
 
#define COMP_SPEW(c, ...)
 Spew level logging. More...
 
#define COMP_DEBUG(c, ...)
 Debug level logging. More...
 
#define COMP_PRINT_MODE(c, ...)
 Mode printing. More...
 
#define COMP_ERROR(c, ...)
 Error level logging. More...
 

Functions

void comp_compositor_garbage_collect (struct comp_compositor *c)
 Do garbage collection, destroying any resources that has been scheduled for destruction from other threads. More...
 
struct xrt_swapchaincomp_swapchain_create (struct xrt_compositor *xc, enum xrt_swapchain_create_flags create, enum xrt_swapchain_usage_bits bits, int64_t format, uint32_t sample_count, uint32_t width, uint32_t height, uint32_t face_count, uint32_t array_size, uint32_t mip_count)
 A compositor function that is implemented in the swapchain code. More...
 
void comp_swapchain_really_destroy (struct comp_swapchain *sc)
 Swapchain destruct is delayed until it is safe to destroy them, this function does the actual destruction and is called from comp_compositor_garbage_collect. More...
 
void comp_swapchain_image_cleanup (struct vk_bundle *vk, uint32_t array_size, struct comp_swapchain_image *image)
 Free and destroy any initialized fields on the given image, safe to pass in images that has one or all fields set to NULL. More...
 
void comp_compositor_print (struct comp_compositor *c, const char *func, const char *fmt,...) XRT_PRINTF_FORMAT(3
 Printer helper. More...
 

Detailed Description

Main compositor written using Vulkan header.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m
Lubosz Sarnecki lubos.nosp@m.z.sa.nosp@m.rneck.nosp@m.i@co.nosp@m.llabo.nosp@m.ra.c.nosp@m.om

Macro Definition Documentation

◆ NUM_FRAME_TIMES

#define NUM_FRAME_TIMES   50