optris_sdk_gpu_info
The GPU the SDK would use, or the reason there is not one.
Process-wide, and answerable with no camera attached -- which is the question an About box asks. The SDK keeps one shared GPU context for every camera, so there is exactly one answer here however many cameras are open.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_gpu_info).
compiled_with_gpu
uint8_t compiled_with_gpu
Non-zero if this build has GPU support compiled in at all.
available
uint8_t available
Non-zero if a usable adapter was found. A software-only adapter counts as unusable and says so in unavailable_reason.
is_software
uint8_t is_software
Non-zero if the adapter is a software rasteriser.
reserved0
uint8_t reserved0[1]
Reserved; always zero.
vendor_id
uint32_t vendor_id
PCI vendor id, or zero.
device_id
uint32_t device_id
PCI device id, or zero.
api
char api[OPTRIS_SDK_MAX_NAME]
"D3D12", "Vulkan", ... Empty when unavailable.
adapter
char adapter[OPTRIS_SDK_MAX_NAME]
The adapter's name. Empty when unavailable.
vendor
char vendor[OPTRIS_SDK_MAX_NAME]
The vendor's name, derived from vendor_id. Empty for a PCI vendor id the SDK has no name for, and empty when unavailable.
Derived from the PCI id rather than asked of the driver. The string wgpu-native reports as the "vendor" is its driver field: on D3D12 it holds the display driver's version ("32.0.16.1692" measured on an NVIDIA RTX 2000 Ada) and on Vulkan the driver's name. The driver's own strings are in driver_name and driver_version.
unavailable_reason
char unavailable_reason[OPTRIS_SDK_MAX_MESSAGE]
Why there is no GPU, when there is not. Empty when available.
driver_name
char driver_name[OPTRIS_SDK_MAX_NAME]
The driver's own name, where it reports one. Empty otherwise -- D3D12 reports a version and no name at all.
Added after the struct shipped; see the note above.
driver_version
char driver_version[OPTRIS_SDK_MAX_NAME]
The driver's version, where it reports one. Empty otherwise. Free-form: "32.0.16.1692" on D3D12.
Added after the struct shipped; see the note above.