| // Copyright 2021 The IREE Authors |
| // |
| // Licensed under the Apache License v2.0 with LLVM Exceptions. |
| // See https://llvm.org/LICENSE.txt for license information. |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| |
| #ifndef IREE_HAL_DRIVERS_WEBGPU_WEBGPU_DEVICE_H_ |
| #define IREE_HAL_DRIVERS_WEBGPU_WEBGPU_DEVICE_H_ |
| |
| #include "experimental/webgpu/api.h" |
| #include "experimental/webgpu/platform/webgpu.h" |
| #include "iree/base/api.h" |
| #include "iree/hal/api.h" |
| |
| #ifdef __cplusplus |
| extern "C" { |
| #endif // __cplusplus |
| |
| // NOTE: wrapping is currently exposed via iree/hal/drivers/webgpu/api.h. |
| |
| WGPUDevice iree_hal_webgpu_device_handle(iree_hal_device_t* device); |
| |
| #ifdef __cplusplus |
| } // extern "C" |
| #endif // __cplusplus |
| |
| #endif // IREE_HAL_DRIVERS_WEBGPU_WEBGPU_DEVICE_H_ |