1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

Document glow-only fields in NativeOptions (#8104)

This commit is contained in:
Emil Ernerfeldt
2026-04-14 13:00:35 +02:00
committed by lucasmerlin
parent 9bad77e68a
commit be30588107

View File

@@ -317,6 +317,8 @@ pub struct NativeOptions {
/// Turn on vertical syncing, limiting the FPS to the display refresh rate. /// Turn on vertical syncing, limiting the FPS to the display refresh rate.
/// ///
/// The default is `true`. /// The default is `true`.
///
/// Only affects the `glow` backend.
pub vsync: bool, pub vsync: bool,
/// Set the level of the multisampling anti-aliasing (MSAA). /// Set the level of the multisampling anti-aliasing (MSAA).
@@ -343,6 +345,8 @@ pub struct NativeOptions {
/// Specify whether or not hardware acceleration is preferred, required, or not. /// Specify whether or not hardware acceleration is preferred, required, or not.
/// ///
/// Default: [`HardwareAcceleration::Preferred`]. /// Default: [`HardwareAcceleration::Preferred`].
///
/// Only affects the `glow` backend.
pub hardware_acceleration: HardwareAcceleration, pub hardware_acceleration: HardwareAcceleration,
/// What rendering backend to use. /// What rendering backend to use.