Skip to content
Merged
Changes from 2 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
27 changes: 22 additions & 5 deletions lua/wezterm/types/wezterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -572,14 +572,31 @@ local freetype_target = {
---
---@field port string

---@enum (key) GpuInfo.DeviceType
local gpu_device_type = {
Other = 1,
IntegratedGpu = 1,
DiscreteGpu = 1,
Cpu = 1,
Comment thread
KevinSilvester marked this conversation as resolved.
Outdated
}

---@enum (key) GpuInfo.Backend
local gpu_backend = {
Vulkan = 1,
Metal = 1,
Dx12 = 1,
Gl = 1,
Comment thread
KevinSilvester marked this conversation as resolved.
Outdated
}

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

---@class UnixDomain
---If `true`, connect to this domain on startup.
Expand Down