pub struct RenderSenderConfig {
pub target_peer: PeerId,
pub auto_reconnect: bool,
pub layout: FrameLayout,
pub views: Vec<FrameViewSpec>,
pub app_volume: Option<AppVolumeId>,
pub color_format: PixelFormat,
pub depth_format: PixelFormat,
pub alpha_mode: ColorAlphaMode,
pub color_encoding: ColorEncoding,
pub render_loop: RenderLoop,
}Expand description
Options for qar_render_sender_create on the CPU path.
Fields§
§target_peer: PeerIdThe requesting peer, from RenderRequest::target_peer.
auto_reconnect: bool§layout: FrameLayout§views: Vec<FrameViewSpec>At most QAR_MAX_FRAME_VIEWS (8). The docs do not specify which view
set a given layout expects; query RenderSender::layout after
creation and write pixels where the frame’s views say.
app_volume: Option<AppVolumeId>Composites the stream inside this app volume.
color_format: PixelFormat§depth_format: PixelFormatPixelFormat::D16Unorm on every graphics API;
PixelFormat::D24UnormS8Uint and PixelFormat::D32FloatS8X24Uint
on Vulkan only. A format the graphics API cannot take is refused with
crate::StatusCode::RENDERING_DEPTH_FORMAT_NOT_SUPPORTED.
alpha_mode: ColorAlphaModeChains QarRenderSenderAlphaModeExt unless
ColorAlphaMode::Unspecified.
color_encoding: ColorEncodingChains QarRenderSenderColorEncodingExt unless
ColorEncoding::Srgb.
render_loop: RenderLoopChains QarRenderSenderRenderLoopExt unless
RenderLoop::RequestDriven.