wgpuLastError function

String? wgpuLastError()

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();
}