Monado OpenXR Runtime
Data Structures | Functions
comp_distortion.h File Reference

Distortion shader code header. More...

#include "main/comp_settings.h"
#include "main/comp_compositor.h"
Include dependency graph for comp_distortion.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  comp_uniform_buffer
 Helper buffer for a single uniform buffer. More...
 
struct  comp_distortion
 Helper struct that encapsulate a distortion rendering code. More...
 

Functions

void comp_distortion_init (struct comp_distortion *d, struct comp_compositor *c, VkRenderPass render_pass, VkPipelineCache pipeline_cache, enum xrt_distortion_model distortion_model, struct xrt_hmd_parts *parts, VkDescriptorPool descriptor_pool, bool flip_y)
 Init a distortion, pass in the distortion so it can be embedded in a struct. More...
 
void comp_distortion_destroy (struct comp_distortion *d)
 Free and destroy all fields, does not free the destortion itself. More...
 
void comp_distortion_update_descriptor_set (struct comp_distortion *d, VkSampler sampler, VkImageView view, uint32_t eye)
 Update the descriptor set to a new image. More...
 
void comp_distortion_draw_quad (struct comp_distortion *d, VkCommandBuffer command_buffer, int eye)
 Submit draw commands to the given command_buffer. More...
 
void comp_distortion_draw_mesh (struct comp_distortion *d, VkCommandBuffer command_buffer, int eye)
 

Detailed Description

Distortion shader code header.

Author
Lubosz Sarnecki lubos.nosp@m.z.sa.nosp@m.rneck.nosp@m.i@co.nosp@m.llabo.nosp@m.ra.c.nosp@m.om
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Function Documentation

◆ comp_distortion_draw_mesh()

void comp_distortion_draw_mesh ( struct comp_distortion d,
VkCommandBuffer  command_buffer,
int  eye 
)