Monado OpenXR Runtime
sdl_swapchain.c File Reference

Swapchain code for the sdl code. More...

#include "sdl_internal.h"
#include "util/u_handles.h"
#include "ogl/ogl_helpers.h"
#include <inttypes.h>
Include dependency graph for sdl_swapchain.c:

Functions

static void post_init_setup (struct sdl_swapchain *ssc, struct sdl_program *sp, const struct xrt_swapchain_create_info *info)
 
static void really_destroy (struct comp_swapchain *sc)
 
xrt_result_t sdl_swapchain_create (struct xrt_compositor *xc, const struct xrt_swapchain_create_info *info, struct xrt_swapchain **out_xsc)
 Implementation of xrt_compositor::create_swapchain. More...
 
xrt_result_t sdl_swapchain_import (struct xrt_compositor *xc, const struct xrt_swapchain_create_info *info, struct xrt_image_native *native_images, uint32_t native_image_count, struct xrt_swapchain **out_xsc)
 Implementation of xrt_compositor::import_swapchain. More...
 

Detailed Description

Swapchain code for the sdl code.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Function Documentation

◆ sdl_swapchain_create()

xrt_result_t sdl_swapchain_create ( struct xrt_compositor xc,
const struct xrt_swapchain_create_info info,
struct xrt_swapchain **  out_xsc 
)

◆ sdl_swapchain_import()

xrt_result_t sdl_swapchain_import ( struct xrt_compositor xc,
const struct xrt_swapchain_create_info info,
struct xrt_image_native native_images,
uint32_t  native_image_count,
struct xrt_swapchain **  out_xsc 
)