1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 14:49:06 -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 GitHub
parent 152b97b434
commit 5c96f4f080

View File

@@ -317,6 +317,8 @@ pub struct NativeOptions {
/// Turn on vertical syncing, limiting the FPS to the display refresh rate.
///
/// The default is `true`.
///
/// Only affects the `glow` backend.
pub vsync: bool,
/// 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.
///
/// Default: [`HardwareAcceleration::Preferred`].
///
/// Only affects the `glow` backend.
pub hardware_acceleration: HardwareAcceleration,
/// What rendering backend to use.