Monado OpenXR Runtime
render_util.c File Reference

The compositor compute based rendering code. More...

Include dependency graph for render_util.c:

Functions

static void calc_projection (const struct xrt_fov *fov, struct xrt_matrix_4x4_f64 *result)
 Create a simplified projection matrix for timewarp. More...
 
void render_calc_time_warp_matrix (const struct xrt_pose *src_pose, const struct xrt_fov *src_fov, const struct xrt_pose *new_pose, struct xrt_matrix_4x4 *matrix)
 Calculates a timewarp matrix which takes in NDC coords and gives out results in [-1, 1] space that needs a perspective divide. More...
 
void render_calc_uv_to_tangent_lengths_rect (const struct xrt_fov *fov, struct xrt_normalized_rect *out_rect)
 This function constructs a transformation in the form of a normalized rect that lets you go from a UV coordinate on a projection plane to the a point on the tangent plane. More...
 

Detailed Description

The compositor compute based rendering code.

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

Function Documentation

◆ calc_projection()

static void calc_projection ( const struct xrt_fov fov,
struct xrt_matrix_4x4_f64 result 
)
static

Create a simplified projection matrix for timewarp.

Referenced by render_calc_time_warp_matrix().