Skip to main content
QAROS Rust API Dev (main) · versions: Dev (main) · Developer Guide

Module defaults

Module defaults 

Source
Expand description

Ports of the header’s static inline qar_*_default() initializers.

These functions do not exist in the binary, so every language binding must replicate them. Each port matches the header’s initializer field by field, which the qaros-conformance tests check by compiling the C originals. Members the C initializers zero-fill ({ 0 } or {}) are zero here too.

Functions§

qar_app_volume_editing_status_default
qar_app_volume_gesture_allowed_peers_ext_default
No peers: the caller sets allowed_peers and allowed_peer_count.
qar_app_volume_gesture_configuration_default
qar_app_volume_gesture_mapping_rule_default
qar_app_volume_id_default
qar_app_volume_init_default
The world anchor is zero-filled, as in the header.
qar_app_volume_size_default
qar_device_hand_with_joints_default
qar_dxgi_keyed_mutex_sync_default
qar_forget_init_default
qar_fov_default
The header’s comment says “all zeros”; the initializer sets ±0.785 rad. This port follows the initializer.
qar_graphics_device_disabled_ext_default
qar_graphics_device_id_default
The header leaves the id empty and picks the id type by platform: LUID on Windows, UUID elsewhere.
qar_gui_panel_id_default
qar_gui_panel_init_default
qar_gui_panel_served_content_ext_default
No bundle and no entry: the caller sets both before chaining it.
qar_gui_panel_size_default
qar_gui_panel_stream_id_ext_default
The zero stream id; the caller sets it.
qar_gui_panel_url_ext_default
qar_hand_joint_location_default
qar_hand_joint_velocity_default
qar_hand_joints_default
qar_image_size_default
qar_join_hub_as_member_init_default
invitation is required; the zero timeouts select 60 s and 120 s.
qar_library_init_default
qar_member_hub_invitation_app_grant_ext_default
app_tag is required; the caller sets it.
qar_member_hub_invitation_init_default
Zero fields select the defaults: 24 h, one use, join, rejoin and bring devices.
qar_near_far_default
The header’s comment says “zeros”; the initializer sets 0.1 and 100. This port follows the initializer.
qar_onboard_code_ext_default
qar_onboard_host_ext_default
qar_onboard_init_default
qar_onboard_invite_ext_default
qar_onboard_local_app_ext_default
qar_onboard_local_app_tag_ext_default
app_tag is required; the caller sets it.
qar_onboard_peer_id_ext_default
peer_id is required (the zero id is refused); the caller sets it.
qar_onboard_remote_app_grant_ext_default
invitation is required; the caller sets it.
qar_onboarding_id_default
qar_open_qaros_view_info_default
qar_peer_device_identity_default
Category QAR_DEVICE_CATEGORY_DESKTOP_PC, NULL strings; device_id is required.
qar_peer_id_default
qar_peer_presentation_default
qar_pose_default
qar_quaternion_default
qar_rejoin_init_default
qar_render_frame_show_default
The header stamps this structure with QAR_STRUCTURE_TYPE_RENDERING_END_FRAME.
qar_render_frame_view_default
qar_render_sender_alpha_mode_ext_default
qar_render_sender_color_encoding_ext_default
qar_render_sender_init_default
Frame views are zero-filled, as in the header.
qar_render_sender_render_loop_ext_default
qar_request_invite_init_default
app_tag is required; the caller sets it.
qar_runtime_ephemeral_storage_ext_default
qar_runtime_init_default
qar_session_id_default
qar_session_invite_target_app_init_default
connection_string is required; the caller sets it.
qar_session_lifecycle_info_default
qar_stream_id_default
qar_stream_params_d3d11_default
qar_stream_params_vulkan_default
Null VkPhysicalDevice and VkDevice.
qar_sync_frame_d3d11_default
qar_sync_frame_vulkan_default
VK_NULL_HANDLE semaphore and fence.
qar_texture_size_default
qar_time_point_default
qar_vector3_default
qar_video_frame_cpu_default
Views and textures are zero-filled, as in the header.
qar_video_frame_d3d11_default
qar_video_frame_layout_default
Views and textures are zero-filled, as in the header (not set to their own defaults).
qar_video_frame_view_default
qar_video_frame_vulkan_default
qar_video_sender_init_default
Reconnects on, 300 s reconnect timeout, CPU frames.
qar_video_texture_cpu_default
qar_video_texture_d3d11_default
structure_header
Header stamp { type, NULL }.