Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions lua/wezterm/types/wezterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -572,12 +572,29 @@ local freetype_target = {
---
---@field port string

---@enum (key) GpuInfo.DeviceType
local gpu_device_type = {
Cpu = 1,
DiscreteGpu = 1,
IntegratedGpu = 1,
Other = 1,
}

---@enum (key) GpuInfo.Backend
local gpu_backend = {
Dx12 = 1,
Gl = 1,
Metal = 1,
Vulkan = 1,
}

---Corresponds to [`wgpu::AdapterInfo`](https://docs.rs/wgpu/latest/wgpu/struct.AdapterInfo.html).
---@class GpuInfo
---@field backend string
---@field backend GpuInfo.Backend
---@field device integer
---@field device_type string
---@field driver string
---@field driver_info string
---@field device_type GpuInfo.DeviceType
---@field driver? string
---@field driver_info? string
Comment thread
KevinSilvester marked this conversation as resolved.
---@field name string
---@field vendor integer

Expand Down