struct Protocol::SystemInfo::GPUDevice

Overview

Describes a single graphics processor (GPU).

Included Modules

Defined in:

protocol/system_info.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def device_id : Number::Primitive #

PCI ID of the GPU device, if available; 0 otherwise.


[View source]
def device_string : String #

String description of the GPU device, if the PCI ID is not available.


[View source]
def driver_vendor : String #

String description of the GPU driver vendor.


[View source]
def driver_version : String #

String description of the GPU driver version.


[View source]
def revision : Number::Primitive | Nil #

Revision of the GPU, only available on Windows.


[View source]
def sub_sys_id : Number::Primitive | Nil #

Sub sys ID of the GPU, only available on Windows.


[View source]
def vendor_id : Number::Primitive #

PCI ID of the GPU vendor, if available; 0 otherwise.


[View source]
def vendor_string : String #

String description of the GPU vendor, if the PCI ID is not available.


[View source]