forked from chromedp/chromedp
/
types.go
21 lines (17 loc) · 1.13 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package systeminfo
import "github.com/mailru/easyjson"
// AUTOGENERATED. DO NOT EDIT.
// GPUDevice describes a single graphics processor (GPU).
type GPUDevice struct {
VendorID float64 `json:"vendorId,omitempty"` // PCI ID of the GPU vendor, if available; 0 otherwise.
DeviceID float64 `json:"deviceId,omitempty"` // PCI ID of the GPU device, if available; 0 otherwise.
VendorString string `json:"vendorString,omitempty"` // String description of the GPU vendor, if the PCI ID is not available.
DeviceString string `json:"deviceString,omitempty"` // String description of the GPU device, if the PCI ID is not available.
}
// GPUInfo provides information about the GPU(s) on the system.
type GPUInfo struct {
Devices []*GPUDevice `json:"devices,omitempty"` // The graphics devices on the system. Element 0 is the primary GPU.
AuxAttributes easyjson.RawMessage `json:"auxAttributes,omitempty"`
FeatureStatus easyjson.RawMessage `json:"featureStatus,omitempty"`
DriverBugWorkarounds []string `json:"driverBugWorkarounds,omitempty"` // An optional array of GPU driver bug workarounds.
}