Implement main compositor
Replace the patches to Monado's main compositor with a local implementation, reusing code when relevant. The layer squasher is very close to comp_render_cs, while distortion is completely replaced by foveation.
This commit is contained in:
@@ -33,7 +33,7 @@ namespace wivrn
|
||||
class video_encoder_nvenc : public video_encoder
|
||||
{
|
||||
private:
|
||||
wivrn_vk_bundle & vk;
|
||||
wivrn::vk_bundle & vk;
|
||||
|
||||
std::shared_ptr<video_encoder_nvenc_shared_state> shared_state;
|
||||
|
||||
@@ -58,7 +58,7 @@ private:
|
||||
void set_init_params_fps(float framerate);
|
||||
|
||||
public:
|
||||
video_encoder_nvenc(wivrn_vk_bundle & vk, const encoder_settings & settings, uint8_t stream_idx);
|
||||
video_encoder_nvenc(wivrn::vk_bundle & vk, const encoder_settings & settings, uint8_t stream_idx);
|
||||
~video_encoder_nvenc();
|
||||
|
||||
std::pair<bool, vk::Semaphore> present_image(vk::Image y_cbcr, bool transferred, vk::raii::CommandBuffer & cmd_buf, uint8_t slot, uint64_t frame_index) override;
|
||||
|
||||
Reference in New Issue
Block a user