Monado OpenXR Runtime
comp_window_peek.c File Reference

Displays the content of one or both eye onto a desktop window. More...

#include "main/comp_compositor.h"
#include "main/comp_target_swapchain.h"
#include "main/comp_window_peek.h"
#include "util/u_debug.h"
#include <SDL2/SDL_vulkan.h>
Include dependency graph for comp_window_peek.c:

Data Structures

struct  comp_window_peek
 

Macros

#define PEEK_IMAGE_USAGE   (VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT)
 

Functions

static struct vk_bundleget_vk (struct comp_window_peek *w)
 
static void create_images (struct comp_window_peek *w)
 
static void * window_peek_run_thread (void *ptr)
 
struct comp_window_peekcomp_window_peek_create (struct comp_compositor *c)
 
void comp_window_peek_destroy (struct comp_window_peek **w_ptr)
 
void comp_window_peek_blit (struct comp_window_peek *w, VkImage src, int32_t width, int32_t height)
 
enum comp_window_peek_eye comp_window_peek_get_eye (struct comp_window_peek *w)
 Getter for the peek window's eye enum. More...
 

Detailed Description

Displays the content of one or both eye onto a desktop window.

Author
Simon Zeni simon.nosp@m.@bl4.nosp@m.ckb0n.nosp@m.e.ca

Function Documentation

◆ comp_window_peek_get_eye()

enum comp_window_peek_eye comp_window_peek_get_eye ( struct comp_window_peek w)

Getter for the peek window's eye enum.

This is a getter function so that struct comp_window_peek can be private.

Parameters
[in]wThe peek window struct this compositor has.
Returns
The eye that the peek window wants to display.