当前位置: 首页 > 文档资料 > Electron 中文文档 >

GPU 特性状态对象

优质
小牛编辑
155浏览
2023-12-01
  • 2d_canvas String - 画布.
  • flash_3d String - Flash.
  • flash_stage3d String - Flash 舞台3D.
  • flash_stage3d_baseline String - Flash 舞台3D 基线配置.
  • gpu_compositing String - 合成.
  • multiple_raster_threads String - 多光栅线程.
  • native_gpu_memory_buffers String - 原生GPU显存缓冲.
  • rasterization String - 光栅化.
  • video_decode String - 视频解码.
  • video_encode String - 视频编码.
  • vpx_decode String - VPx 视频解码.
  • webgl String - WebGL.
  • webgl2 String - WebGL2.

可选值:

  • disabled_software - 只用于软件。禁用硬件加速。(yellow)
  • disabled_off - 禁用(red)
  • disabled_off_ok - 已禁用(yellow)
  • unavailable_software - 只用于软件, 硬件加速不可用 (yellow)
  • unavailable_off - 不可用(red)
  • unavailable_off_ok - 已设为不可用的 (yellow)
  • enabled_readback - 硬件加速但是有损耗性能 (yellow)
  • enabled_force - 所有页面开启硬件加速 (green)
  • enabled - 已硬件加速 (green)
  • enabled_on - 启用 (green)
  • enabled_force_on - 强制启用 (green)

GPUFeatureStatus Object

  • 2d_canvas String - Canvas.
  • flash_3d String - Flash.
  • flash_stage3d String - Flash Stage3D.
  • flash_stage3d_baseline String - Flash Stage3D Baseline profile.
  • gpu_compositing String - Compositing.
  • multiple_raster_threads String - Multiple Raster Threads.
  • native_gpu_memory_buffers String - Native GpuMemoryBuffers.
  • rasterization String - Rasterization.
  • video_decode String - Video Decode.
  • video_encode String - Video Encode.
  • vpx_decode String - VPx Video Decode.
  • webgl String - WebGL.
  • webgl2 String - WebGL2.

Possible values:

  • 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)