deviceName property
String
get
deviceName
The GPU's name, once a GpuForward exists.
Implementation
static String get deviceName {
final scratch = _Buffer._check(_buffer(256), 256);
try {
final out = _contents(scratch).cast<Uint8>();
_deviceName(out, 256);
final bytes = out.asTypedList(256);
return String.fromCharCodes(bytes.sublist(0, bytes.indexOf(0)));
} finally {
_release(scratch);
}
}