using System.Text.Json.Serialization; namespace ElectronNET.API.Entities { /// /// Graphics Feature Status from chrome://gpu/ as returned by app.getGPUFeatureStatus(). /// Each field reflects the status of a GPU capability reported by Chromium. /// /// Possible values for all fields: /// - disabled_software: Software only. Hardware acceleration disabled (yellow) /// - disabled_off: Disabled (red) /// - disabled_off_ok: Disabled (yellow) /// - unavailable_software: Software only, hardware acceleration unavailable (yellow) /// - unavailable_off: Unavailable (red) /// - unavailable_off_ok: Unavailable (yellow) /// - enabled_readback: Hardware accelerated but at reduced performance (yellow) /// - enabled_force: Hardware accelerated on all pages (green) /// - enabled: Hardware accelerated (green) /// - enabled_on: Enabled (green) /// - enabled_force_on: Force enabled (green) /// /// Up-to-date with Electron API 39.2 public class GPUFeatureStatus { /// /// Gets or sets the status for Canvas. /// [JsonPropertyName("2d_canvas")] public string Canvas { get; set; } /// /// Gets or sets the status for Flash. /// [JsonPropertyName("flash_3d")] public string Flash3D { get; set; } /// /// Gets or sets the status for Flash Stage3D. /// [JsonPropertyName("flash_stage3d")] public string FlashStage3D { get; set; } /// /// Gets or sets the status for Flash Stage3D Baseline profile. /// [JsonPropertyName("flash_stage3d_baseline")] public string FlashStage3dBaseline { get; set; } /// /// Gets or sets the status for Compositing. /// [JsonPropertyName("gpu_compositing")] public string GpuCompositing { get; set; } /// /// Gets or sets the status for Multiple Raster Threads. /// [JsonPropertyName("multiple_raster_threads")] public string MultipleRasterThreads { get; set; } /// /// Gets or sets the status for Native GpuMemoryBuffers. /// [JsonPropertyName("native_gpu_memory_buffers")] public string NativeGpuMemoryBuffers { get; set; } /// /// Gets or sets the status for Rasterization. /// public string Rasterization { get; set; } /// /// Gets or sets the status for Video Decode. /// [JsonPropertyName("video_decode")] public string VideoDecode { get; set; } /// /// Gets or sets the status for Video Encode. /// [JsonPropertyName("video_encode")] public string VideoEncode { get; set; } /// /// Gets or sets the status for VPx Video Decode. /// [JsonPropertyName("vpx_decode")] public string VpxDecode { get; set; } /// /// Gets or sets the status for WebGL. /// public string Webgl { get; set; } /// /// Gets or sets the status for WebGL2. /// public string Webgl2 { get; set; } } }