Monado OpenXR Runtime
comp_window_debug_image.c File Reference

Simple debug image based target. More...

#include "util/u_misc.h"
#include "util/u_pacing.h"
#include "util/u_pretty_print.h"
#include "main/comp_window.h"
Include dependency graph for comp_window_debug_image.c:

Data Structures

struct  debug_image_target
 

Functions

static bool target_init_pre_vulkan (struct comp_target *ct)
 
static bool target_init_post_vulkan (struct comp_target *ct, uint32_t preferred_width, uint32_t preferred_height)
 
static bool target_check_ready (struct comp_target *ct)
 
static void target_create_images (struct comp_target *ct, const struct comp_target_create_images_info *create_info)
 
static bool target_has_images (struct comp_target *ct)
 
static VkResult target_acquire (struct comp_target *ct, uint32_t *out_index)
 
static VkResult target_present (struct comp_target *ct, VkQueue queue, uint32_t index, uint64_t timeline_semaphore_value, int64_t desired_present_time_ns, int64_t present_slop_ns)
 
static void target_flush (struct comp_target *ct)
 
static void target_calc_frame_pacing (struct comp_target *ct, int64_t *out_frame_id, int64_t *out_wake_up_time_ns, int64_t *out_desired_present_time_ns, int64_t *out_present_slop_ns, int64_t *out_predicted_display_time_ns)
 
static void target_mark_timing_point (struct comp_target *ct, enum comp_target_timing_point point, int64_t frame_id, int64_t when_ns)
 
static VkResult target_update_timings (struct comp_target *ct)
 
static void target_info_gpu (struct comp_target *ct, int64_t frame_id, int64_t gpu_start_ns, int64_t gpu_end_ns, int64_t when_ns)
 
static void target_set_title (struct comp_target *ct, const char *title)
 
static void target_destroy (struct comp_target *ct)
 
struct comp_targettarget_create (struct comp_compositor *c)
 
static bool factory_detect (const struct comp_target_factory *ctf, struct comp_compositor *c)
 
static bool factory_create_target (const struct comp_target_factory *ctf, struct comp_compositor *c, struct comp_target **out_ct)
 

Variables

const struct comp_target_factory comp_target_factory_debug_image
 Debug info target factor, always available. More...
 

Detailed Description

Simple debug image based target.

Author
Jakob Bornecrantz tborn.nosp@m.ecra.nosp@m.ntz@n.nosp@m.vidi.nosp@m.a.com