mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
feat(gpu,dvr,ci): image enhance/SBS/DMA-BUF, DVR .srt + Replay 30s, GPS Home arrow, CI & modular split
This commit is contained in:
1 parent
4aa4fc06e7
commit
b4642ddc95
33 files changed
+8279
-6092
No files matched your search
+335
-102
@@ -6,7 +6,8 @@ use crate::engine::{
|
||||
};
|
||||
use crate::nomad_elrs::HeadPoseSample;
|
||||
use crate::telemetry_osd::{OsdExtraOptions, OsdOverlay};
|
||||
use crate::video_usb::{nv12_to_rgba_or_bgra, PixelFormat, UsbVideoReceiver};
|
||||
use crate::video_usb::{nv12_to_rgba_or_bgra, DmaBufFrame, PixelFormat, UsbVideoReceiver};
|
||||
use crate::vulkan_warp::GpuImageEnhanceParams;
|
||||
use crate::vulkan_xr::VulkanXrContext;
|
||||
use anyhow::{Context, Result};
|
||||
use glam::{EulerRot, Quat};
|
||||
@@ -268,7 +269,13 @@ pub fn try_run_openxr_session(ctx: &mut EngineWorkerRefs<'_>) -> Result<()> {
|
||||
let mut osd_layer_rgba: Vec<u8> = vec![0u8; frame_bytes];
|
||||
let mut last_preview_push: Option<Instant> = None;
|
||||
let mut last_osd_upload: Option<Instant> = None;
|
||||
let mut last_uploaded_opt: (f32, f32, f32) = (f32::NAN, f32::NAN, f32::NAN);
|
||||
let mut last_uploaded_opt: (f32, f32, f32, GpuImageEnhanceParams) = (
|
||||
f32::NAN,
|
||||
f32::NAN,
|
||||
f32::NAN,
|
||||
GpuImageEnhanceParams::default(),
|
||||
);
|
||||
let mut dmabuf_rejected = false;
|
||||
|
||||
let session = vk_xr
|
||||
.session
|
||||
@@ -521,38 +528,62 @@ pub fn try_run_openxr_session(ctx: &mut EngineWorkerRefs<'_>) -> Result<()> {
|
||||
continue;
|
||||
}
|
||||
|
||||
// 1. Acquisition vidéo O(1) (swap de pointeur Vec sans copie sous verrou)
|
||||
let mut has_new_raw_frame = false;
|
||||
let mut has_video_stream = false;
|
||||
if let Some(rx) = ctx.video_rx_opt {
|
||||
let (live, taken) = rx.take_latest_frame(
|
||||
&mut raw_frame_buf,
|
||||
last_frame_id,
|
||||
Duration::from_millis(1000),
|
||||
);
|
||||
has_video_stream = live;
|
||||
if let Some(meta) = taken {
|
||||
if meta.width == ctx.cfg.video_width && meta.height == ctx.cfg.video_height {
|
||||
last_frame_id = meta.frame_id;
|
||||
raw_frame_format = meta.format;
|
||||
fps_counter += 1;
|
||||
has_new_raw_frame = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 1. Acquisition vidéo O(1) (DMA-BUF zéro-copie prioritaire si actif, sinon swap Vec O(1))
|
||||
let dvr_needs_rgba = ctx
|
||||
.active_dvr
|
||||
.as_ref()
|
||||
.is_some_and(|d| d.mode() == DvrMode::CompositedOsd);
|
||||
let preview_due = ctx.control.is_preview_active()
|
||||
let preview_active = ctx.control.is_preview_active();
|
||||
let preview_due = preview_active
|
||||
&& last_preview_push.is_none_or(|t| t.elapsed() >= Duration::from_millis(33));
|
||||
|
||||
let mut video_dirty = has_new_raw_frame || !vk_xr.has_uploaded_video;
|
||||
let opt_tuple = (cur_opt.lens_k1, cur_opt.lens_k2, cur_opt.camera_fov_deg);
|
||||
if opt_tuple != last_uploaded_opt {
|
||||
last_uploaded_opt = opt_tuple;
|
||||
video_dirty = true;
|
||||
let want_dmabuf = ctx.cfg.zero_copy_dmabuf
|
||||
&& vk_xr.supports_dmabuf()
|
||||
&& !dmabuf_rejected
|
||||
&& !dvr_needs_rgba
|
||||
&& !preview_active;
|
||||
|
||||
let mut has_new_raw_frame = false;
|
||||
let mut has_video_stream = false;
|
||||
let mut taken_dmabuf: Option<DmaBufFrame> = None;
|
||||
|
||||
if let Some(rx) = ctx.video_rx_opt {
|
||||
rx.set_dmabuf_handoff(want_dmabuf);
|
||||
if want_dmabuf {
|
||||
let (live_d, dmabuf_opt) =
|
||||
rx.take_latest_dmabuf(last_frame_id, Duration::from_millis(1000));
|
||||
if live_d {
|
||||
has_video_stream = true;
|
||||
}
|
||||
if let Some(d) = dmabuf_opt {
|
||||
if d.width == ctx.cfg.video_width && d.height == ctx.cfg.video_height {
|
||||
last_frame_id = d.frame_id;
|
||||
raw_frame_format = d.format;
|
||||
fps_counter += 1;
|
||||
has_new_raw_frame = true;
|
||||
taken_dmabuf = Some(d);
|
||||
}
|
||||
}
|
||||
}
|
||||
if taken_dmabuf.is_none() {
|
||||
let (live, taken) = rx.take_latest_frame(
|
||||
&mut raw_frame_buf,
|
||||
last_frame_id,
|
||||
Duration::from_millis(1000),
|
||||
);
|
||||
if live {
|
||||
has_video_stream = true;
|
||||
}
|
||||
if let Some(meta) = taken {
|
||||
if meta.width == ctx.cfg.video_width && meta.height == ctx.cfg.video_height
|
||||
{
|
||||
last_frame_id = meta.frame_id;
|
||||
raw_frame_format = meta.format;
|
||||
fps_counter += 1;
|
||||
has_new_raw_frame = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Mire standby animée à ~20 Hz seulement (pas à 120 Hz)
|
||||
@@ -584,11 +615,14 @@ pub fn try_run_openxr_session(ctx: &mut EngineWorkerRefs<'_>) -> Result<()> {
|
||||
[255, 180, 40, 255],
|
||||
);
|
||||
standby_updated = true;
|
||||
video_dirty = true;
|
||||
}
|
||||
|
||||
// Convertir en RGBA sur CPU uniquement si nécessaire (repli sans GPU warp, DVR OSD ou preview GPUI)
|
||||
if has_video_stream && (!use_gpu_warp || dvr_needs_rgba || preview_due) && has_new_raw_frame {
|
||||
if has_video_stream
|
||||
&& taken_dmabuf.is_none()
|
||||
&& (!use_gpu_warp || dvr_needs_rgba || preview_due)
|
||||
&& has_new_raw_frame
|
||||
{
|
||||
match raw_frame_format {
|
||||
PixelFormat::Nv12 => {
|
||||
nv12_to_rgba_or_bgra(
|
||||
@@ -636,26 +670,88 @@ pub fn try_run_openxr_session(ctx: &mut EngineWorkerRefs<'_>) -> Result<()> {
|
||||
!use_osd_layer || dvr_needs_rgba || preview_due,
|
||||
);
|
||||
|
||||
// 3. Upload Swapchain Vidéo (UNIQUEMENT si dirty : skip à 90/120 Hz sur vidéo 60 FPS !)
|
||||
let horizon_roll_rad = if cur_opt.horizon_stabilization && telem_snapshot.is_live() {
|
||||
-telem_snapshot.drone_roll_rad.clamp(-0.75, 0.75)
|
||||
} else {
|
||||
0.0
|
||||
};
|
||||
let enhance = GpuImageEnhanceParams {
|
||||
brightness: cur_opt.brightness,
|
||||
contrast: cur_opt.contrast,
|
||||
gamma: cur_opt.gamma,
|
||||
sharpness: cur_opt.sharpness,
|
||||
horizon_roll_rad,
|
||||
stereo_sbs: cur_opt.stereo_sbs,
|
||||
};
|
||||
|
||||
let mut video_dirty =
|
||||
has_new_raw_frame || standby_updated || !vk_xr.has_uploaded_video;
|
||||
let opt_tuple = (cur_opt.lens_k1, cur_opt.lens_k2, cur_opt.camera_fov_deg, enhance);
|
||||
if opt_tuple != last_uploaded_opt {
|
||||
last_uploaded_opt = opt_tuple;
|
||||
video_dirty = true;
|
||||
}
|
||||
|
||||
// 3. Upload Swapchain Vidéo (DMA-BUF zéro-copie si disponible, sinon Staging double-bufférisé)
|
||||
if video_dirty {
|
||||
let upload_res = if has_video_stream && use_gpu_warp {
|
||||
let upload_res = if let Some(ref dmabuf) = taken_dmabuf {
|
||||
match vk_xr.upload_video_dmabuf(
|
||||
dmabuf,
|
||||
cur_opt.lens_k1,
|
||||
cur_opt.lens_k2,
|
||||
cur_opt.camera_fov_deg,
|
||||
enhance,
|
||||
) {
|
||||
Ok(()) => {
|
||||
ctx.shared.monitor.lock().dmabuf_active = true;
|
||||
Ok(())
|
||||
}
|
||||
Err(e) => {
|
||||
log::warn!(
|
||||
"[VulkanXr] Import DMA-BUF refusé par le pilote ({}), bascule transparente sur staging CPU/GPU.",
|
||||
e
|
||||
);
|
||||
dmabuf_rejected = true;
|
||||
ctx.shared.monitor.lock().dmabuf_active = false;
|
||||
if let Some(rx) = ctx.video_rx_opt {
|
||||
rx.set_dmabuf_handoff(false);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
} else if has_video_stream && use_gpu_warp {
|
||||
vk_xr.upload_video_frame(
|
||||
&raw_frame_buf,
|
||||
raw_frame_format == PixelFormat::Nv12,
|
||||
cur_opt.lens_k1,
|
||||
cur_opt.lens_k2,
|
||||
cur_opt.camera_fov_deg,
|
||||
enhance,
|
||||
)
|
||||
} else if use_osd_layer {
|
||||
// Couche OSD séparée : la couche vidéo reçoit la trame propre sans aucune copie OSD
|
||||
vk_xr.upload_video_frame(&warped_rgba, false, 0.0, 0.0, cur_opt.camera_fov_deg)
|
||||
vk_xr.upload_video_frame(
|
||||
&warped_rgba,
|
||||
false,
|
||||
0.0,
|
||||
0.0,
|
||||
cur_opt.camera_fov_deg,
|
||||
GpuImageEnhanceParams::default(),
|
||||
)
|
||||
} else {
|
||||
let src = if want_osd_overlay {
|
||||
composited_rgba.as_slice()
|
||||
} else {
|
||||
warped_rgba.as_slice()
|
||||
};
|
||||
vk_xr.upload_video_frame(src, false, 0.0, 0.0, cur_opt.camera_fov_deg)
|
||||
vk_xr.upload_video_frame(
|
||||
src,
|
||||
false,
|
||||
0.0,
|
||||
0.0,
|
||||
cur_opt.camera_fov_deg,
|
||||
GpuImageEnhanceParams::default(),
|
||||
)
|
||||
};
|
||||
if let Err(upload_err) = upload_res {
|
||||
if let Some(fs) = vk_xr.frame_stream.as_mut() {
|
||||
@@ -781,83 +877,220 @@ pub fn try_run_openxr_session(ctx: &mut EngineWorkerRefs<'_>) -> Result<()> {
|
||||
.as_mut()
|
||||
.ok_or_else(|| anyhow::anyhow!("FrameStream absent"))?;
|
||||
|
||||
match active_proj {
|
||||
ProjectionMode::Dome140 => {
|
||||
let video_layer = xr::CompositionLayerEquirect2KHR::new()
|
||||
.space(&view_space)
|
||||
.eye_visibility(xr::EyeVisibility::BOTH)
|
||||
.sub_image(sub_image)
|
||||
.pose(xr::Posef::IDENTITY)
|
||||
.radius(safe_distance_m)
|
||||
.central_horizontal_angle(horizontal_fov_rad)
|
||||
.upper_vertical_angle(half_vert_fov_rad)
|
||||
.lower_vertical_angle(-half_vert_fov_rad);
|
||||
if let Some(ref osd_q) = osd_quad_opt {
|
||||
frame_stream.end(
|
||||
xr_frame_state.predicted_display_time,
|
||||
xr::EnvironmentBlendMode::OPAQUE,
|
||||
&[&video_layer, osd_q],
|
||||
)?;
|
||||
} else {
|
||||
frame_stream.end(
|
||||
xr_frame_state.predicted_display_time,
|
||||
xr::EnvironmentBlendMode::OPAQUE,
|
||||
&[&video_layer],
|
||||
)?;
|
||||
if cur_opt.stereo_sbs && ctx.cfg.video_width >= 2 {
|
||||
// Mode Caméra 3D Stéréo Side-by-Side : œil gauche (moitié G) + œil droit (moitié D)
|
||||
let half_w = (ctx.cfg.video_width / 2) as i32;
|
||||
let left_rect = xr::Rect2Di {
|
||||
offset: xr::Offset2Di { x: 0, y: 0 },
|
||||
extent: xr::Extent2Di {
|
||||
width: half_w,
|
||||
height: ctx.cfg.video_height as i32,
|
||||
},
|
||||
};
|
||||
let right_rect = xr::Rect2Di {
|
||||
offset: xr::Offset2Di { x: half_w, y: 0 },
|
||||
extent: xr::Extent2Di {
|
||||
width: ctx.cfg.video_width as i32 - half_w,
|
||||
height: ctx.cfg.video_height as i32,
|
||||
},
|
||||
};
|
||||
let sub_left = xr::SwapchainSubImage::new()
|
||||
.swapchain(swapchain_ref)
|
||||
.image_array_index(0)
|
||||
.image_rect(left_rect);
|
||||
let sub_right = xr::SwapchainSubImage::new()
|
||||
.swapchain(swapchain_ref)
|
||||
.image_array_index(0)
|
||||
.image_rect(right_rect);
|
||||
let sbs_aspect = (half_w as f32 / ctx.cfg.video_height.max(1) as f32).max(0.5);
|
||||
let sbs_half_vert =
|
||||
((horizontal_fov_rad / sbs_aspect) * 0.5).clamp(0.1, max_vert_rad);
|
||||
let sbs_screen_h = safe_width_m / sbs_aspect;
|
||||
|
||||
match active_proj {
|
||||
ProjectionMode::Dome140 => {
|
||||
let left_layer = xr::CompositionLayerEquirect2KHR::new()
|
||||
.space(&view_space)
|
||||
.eye_visibility(xr::EyeVisibility::LEFT)
|
||||
.sub_image(sub_left)
|
||||
.pose(xr::Posef::IDENTITY)
|
||||
.radius(safe_distance_m)
|
||||
.central_horizontal_angle(horizontal_fov_rad)
|
||||
.upper_vertical_angle(sbs_half_vert)
|
||||
.lower_vertical_angle(-sbs_half_vert);
|
||||
let right_layer = xr::CompositionLayerEquirect2KHR::new()
|
||||
.space(&view_space)
|
||||
.eye_visibility(xr::EyeVisibility::RIGHT)
|
||||
.sub_image(sub_right)
|
||||
.pose(xr::Posef::IDENTITY)
|
||||
.radius(safe_distance_m)
|
||||
.central_horizontal_angle(horizontal_fov_rad)
|
||||
.upper_vertical_angle(sbs_half_vert)
|
||||
.lower_vertical_angle(-sbs_half_vert);
|
||||
if let Some(ref osd_q) = osd_quad_opt {
|
||||
frame_stream.end(
|
||||
xr_frame_state.predicted_display_time,
|
||||
xr::EnvironmentBlendMode::OPAQUE,
|
||||
&[&left_layer, &right_layer, osd_q],
|
||||
)?;
|
||||
} else {
|
||||
frame_stream.end(
|
||||
xr_frame_state.predicted_display_time,
|
||||
xr::EnvironmentBlendMode::OPAQUE,
|
||||
&[&left_layer, &right_layer],
|
||||
)?;
|
||||
}
|
||||
}
|
||||
}
|
||||
ProjectionMode::Cylinder140 => {
|
||||
let video_layer = xr::CompositionLayerCylinderKHR::new()
|
||||
.space(&view_space)
|
||||
.eye_visibility(xr::EyeVisibility::BOTH)
|
||||
.sub_image(sub_image)
|
||||
.pose(xr::Posef::IDENTITY)
|
||||
.radius(safe_distance_m)
|
||||
.central_angle(horizontal_fov_rad)
|
||||
.aspect_ratio(aspect);
|
||||
if let Some(ref osd_q) = osd_quad_opt {
|
||||
frame_stream.end(
|
||||
xr_frame_state.predicted_display_time,
|
||||
xr::EnvironmentBlendMode::OPAQUE,
|
||||
&[&video_layer, osd_q],
|
||||
)?;
|
||||
} else {
|
||||
frame_stream.end(
|
||||
xr_frame_state.predicted_display_time,
|
||||
xr::EnvironmentBlendMode::OPAQUE,
|
||||
&[&video_layer],
|
||||
)?;
|
||||
ProjectionMode::Cylinder140 => {
|
||||
let left_layer = xr::CompositionLayerCylinderKHR::new()
|
||||
.space(&view_space)
|
||||
.eye_visibility(xr::EyeVisibility::LEFT)
|
||||
.sub_image(sub_left)
|
||||
.pose(xr::Posef::IDENTITY)
|
||||
.radius(safe_distance_m)
|
||||
.central_angle(horizontal_fov_rad)
|
||||
.aspect_ratio(sbs_aspect);
|
||||
let right_layer = xr::CompositionLayerCylinderKHR::new()
|
||||
.space(&view_space)
|
||||
.eye_visibility(xr::EyeVisibility::RIGHT)
|
||||
.sub_image(sub_right)
|
||||
.pose(xr::Posef::IDENTITY)
|
||||
.radius(safe_distance_m)
|
||||
.central_angle(horizontal_fov_rad)
|
||||
.aspect_ratio(sbs_aspect);
|
||||
if let Some(ref osd_q) = osd_quad_opt {
|
||||
frame_stream.end(
|
||||
xr_frame_state.predicted_display_time,
|
||||
xr::EnvironmentBlendMode::OPAQUE,
|
||||
&[&left_layer, &right_layer, osd_q],
|
||||
)?;
|
||||
} else {
|
||||
frame_stream.end(
|
||||
xr_frame_state.predicted_display_time,
|
||||
xr::EnvironmentBlendMode::OPAQUE,
|
||||
&[&left_layer, &right_layer],
|
||||
)?;
|
||||
}
|
||||
}
|
||||
}
|
||||
ProjectionMode::FlatQuad => {
|
||||
let video_layer = xr::CompositionLayerQuad::new()
|
||||
.space(&view_space)
|
||||
.eye_visibility(xr::EyeVisibility::BOTH)
|
||||
.sub_image(sub_image)
|
||||
.pose(xr::Posef {
|
||||
ProjectionMode::FlatQuad => {
|
||||
let pose = xr::Posef {
|
||||
orientation: xr::Quaternionf::IDENTITY,
|
||||
position: xr::Vector3f {
|
||||
x: 0.0,
|
||||
y: 0.0,
|
||||
z: -safe_distance_m,
|
||||
},
|
||||
})
|
||||
.size(xr::Extent2Df {
|
||||
};
|
||||
let sz = xr::Extent2Df {
|
||||
width: safe_width_m,
|
||||
height: screen_height_m,
|
||||
});
|
||||
if let Some(ref osd_q) = osd_quad_opt {
|
||||
frame_stream.end(
|
||||
xr_frame_state.predicted_display_time,
|
||||
xr::EnvironmentBlendMode::OPAQUE,
|
||||
&[&video_layer, osd_q],
|
||||
)?;
|
||||
} else {
|
||||
frame_stream.end(
|
||||
xr_frame_state.predicted_display_time,
|
||||
xr::EnvironmentBlendMode::OPAQUE,
|
||||
&[&video_layer],
|
||||
)?;
|
||||
height: sbs_screen_h,
|
||||
};
|
||||
let left_layer = xr::CompositionLayerQuad::new()
|
||||
.space(&view_space)
|
||||
.eye_visibility(xr::EyeVisibility::LEFT)
|
||||
.sub_image(sub_left)
|
||||
.pose(pose)
|
||||
.size(sz);
|
||||
let right_layer = xr::CompositionLayerQuad::new()
|
||||
.space(&view_space)
|
||||
.eye_visibility(xr::EyeVisibility::RIGHT)
|
||||
.sub_image(sub_right)
|
||||
.pose(pose)
|
||||
.size(sz);
|
||||
if let Some(ref osd_q) = osd_quad_opt {
|
||||
frame_stream.end(
|
||||
xr_frame_state.predicted_display_time,
|
||||
xr::EnvironmentBlendMode::OPAQUE,
|
||||
&[&left_layer, &right_layer, osd_q],
|
||||
)?;
|
||||
} else {
|
||||
frame_stream.end(
|
||||
xr_frame_state.predicted_display_time,
|
||||
xr::EnvironmentBlendMode::OPAQUE,
|
||||
&[&left_layer, &right_layer],
|
||||
)?;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
match active_proj {
|
||||
ProjectionMode::Dome140 => {
|
||||
let video_layer = xr::CompositionLayerEquirect2KHR::new()
|
||||
.space(&view_space)
|
||||
.eye_visibility(xr::EyeVisibility::BOTH)
|
||||
.sub_image(sub_image)
|
||||
.pose(xr::Posef::IDENTITY)
|
||||
.radius(safe_distance_m)
|
||||
.central_horizontal_angle(horizontal_fov_rad)
|
||||
.upper_vertical_angle(half_vert_fov_rad)
|
||||
.lower_vertical_angle(-half_vert_fov_rad);
|
||||
if let Some(ref osd_q) = osd_quad_opt {
|
||||
frame_stream.end(
|
||||
xr_frame_state.predicted_display_time,
|
||||
xr::EnvironmentBlendMode::OPAQUE,
|
||||
&[&video_layer, osd_q],
|
||||
)?;
|
||||
} else {
|
||||
frame_stream.end(
|
||||
xr_frame_state.predicted_display_time,
|
||||
xr::EnvironmentBlendMode::OPAQUE,
|
||||
&[&video_layer],
|
||||
)?;
|
||||
}
|
||||
}
|
||||
ProjectionMode::Cylinder140 => {
|
||||
let video_layer = xr::CompositionLayerCylinderKHR::new()
|
||||
.space(&view_space)
|
||||
.eye_visibility(xr::EyeVisibility::BOTH)
|
||||
.sub_image(sub_image)
|
||||
.pose(xr::Posef::IDENTITY)
|
||||
.radius(safe_distance_m)
|
||||
.central_angle(horizontal_fov_rad)
|
||||
.aspect_ratio(aspect);
|
||||
if let Some(ref osd_q) = osd_quad_opt {
|
||||
frame_stream.end(
|
||||
xr_frame_state.predicted_display_time,
|
||||
xr::EnvironmentBlendMode::OPAQUE,
|
||||
&[&video_layer, osd_q],
|
||||
)?;
|
||||
} else {
|
||||
frame_stream.end(
|
||||
xr_frame_state.predicted_display_time,
|
||||
xr::EnvironmentBlendMode::OPAQUE,
|
||||
&[&video_layer],
|
||||
)?;
|
||||
}
|
||||
}
|
||||
ProjectionMode::FlatQuad => {
|
||||
let video_layer = xr::CompositionLayerQuad::new()
|
||||
.space(&view_space)
|
||||
.eye_visibility(xr::EyeVisibility::BOTH)
|
||||
.sub_image(sub_image)
|
||||
.pose(xr::Posef {
|
||||
orientation: xr::Quaternionf::IDENTITY,
|
||||
position: xr::Vector3f {
|
||||
x: 0.0,
|
||||
y: 0.0,
|
||||
z: -safe_distance_m,
|
||||
},
|
||||
})
|
||||
.size(xr::Extent2Df {
|
||||
width: safe_width_m,
|
||||
height: screen_height_m,
|
||||
});
|
||||
if let Some(ref osd_q) = osd_quad_opt {
|
||||
frame_stream.end(
|
||||
xr_frame_state.predicted_display_time,
|
||||
xr::EnvironmentBlendMode::OPAQUE,
|
||||
&[&video_layer, osd_q],
|
||||
)?;
|
||||
} else {
|
||||
frame_stream.end(
|
||||
xr_frame_state.predicted_display_time,
|
||||
xr::EnvironmentBlendMode::OPAQUE,
|
||||
&[&video_layer],
|
||||
)?;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user