41 float target_frame_time_ms;
42 uint64_t last_push_ts_ns;
43 int push_every_frame_out_of_X;
46 VkExtent2D image_extent;
53 VkImageView unorm_view;
114 uint64_t predicted_display_time_ns);
125 uint64_t predicted_display_time_ns,
127 VkImageView from_view,
128 VkSampler from_sampler,
129 VkExtent2D from_extent,
Main compositor written using Vulkan header.
enum xrt_result xrt_result_t
Result type used across Monado.
Main compositor struct tying everything in the compositor together.
Definition: comp_compositor.h:89
Helper struct for mirroring the compositors rendering to the debug ui, which also enables recording.
Definition: comp_mirror_to_debug_gui.h:32
VkDescriptorPool descriptor_pool
Descriptor pool for blit.
Definition: comp_mirror_to_debug_gui.h:63
bool comp_mirror_is_ready_and_active(struct comp_mirror_to_debug_gui *m, struct comp_compositor *c, uint64_t predicted_display_time_ns)
Is this struct ready and capable of mirroring the image, can only call comp_mirror_do_blit if this fu...
Definition: comp_mirror_to_debug_gui.c:390
VkResult comp_mirror_init(struct comp_mirror_to_debug_gui *m, struct vk_bundle *vk, struct render_shaders *shaders, VkExtent2D extent)
Initialise the struct.
Definition: comp_mirror_to_debug_gui.c:262
void comp_mirror_fixup_ui_state(struct comp_mirror_to_debug_gui *m, struct comp_compositor *c)
Fixup various timing state.
Definition: comp_mirror_to_debug_gui.c:373
VkPipelineLayout pipeline_layout
Pipeline layout used for compute distortion.
Definition: comp_mirror_to_debug_gui.h:69
XRT_CHECK_RESULT xrt_result_t comp_mirror_do_blit(struct comp_mirror_to_debug_gui *m, struct vk_bundle *vk, uint64_t frame_id, uint64_t predicted_display_time_ns, VkImage from_image, VkImageView from_view, VkSampler from_sampler, VkExtent2D from_extent, struct xrt_normalized_rect from_rect)
Do the blit.
Definition: comp_mirror_to_debug_gui.c:415
void comp_mirror_fini(struct comp_mirror_to_debug_gui *m, struct vk_bundle *vk)
Finalise the struct, frees and resources.
Definition: comp_mirror_to_debug_gui.c:662
VkPipelineCache pipeline_cache
Private here for now.
Definition: comp_mirror_to_debug_gui.h:60
void comp_mirror_add_debug_vars(struct comp_mirror_to_debug_gui *m, struct comp_compositor *c)
One time adding of the debug variables.
Definition: comp_mirror_to_debug_gui.c:351
VkPipeline pipeline
Doesn't depend on target so is static.
Definition: comp_mirror_to_debug_gui.h:72
VkDescriptorSetLayout descriptor_set_layout
Descriptor set layout for compute.
Definition: comp_mirror_to_debug_gui.h:66
Definition: u_worker.c:49
Holds all shaders.
Definition: render_interface.h:136
Allows more safely to debug sink inputs and outputs.
Definition: u_sink.h:185
A bundle of Vulkan functions and objects, used by both Compositor and Compositor client code.
Definition: vk_helpers.h:50
Small helper to manage lock around a command pool.
Definition: vk_cmd_pool.h:33
Definition: vk_image_readback_to_xf_pool.c:18
Normalized image rectangle, coordinates and size in 0 .
Definition: xrt_defines.h:453
xrt_frame_sink converters and other helpers.
Pool to read back VkImages from the gpu.
Header holding common defines.
Internal result type for XRT.