wgpuLastError function
Get the last FFI error message, or null if no error.
Implementation
String? wgpuLastError() {
final ptr = ffi.wgpu_get_last_error();
if (ptr == nullptr) return null;
return ptr.cast<Utf8>().toDartString();
}
Get the last FFI error message, or null if no error.
String? wgpuLastError() {
final ptr = ffi.wgpu_get_last_error();
if (ptr == nullptr) return null;
return ptr.cast<Utf8>().toDartString();
}