VTK  9.3.0
vtk_wgpu.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3#ifndef vtk_wgpu_h
4#define vtk_wgpu_h
5
6#ifdef __EMSCRIPTEN__
7/*
8 * We need an up-to-date version of Emscripten for the API support.
9 */
10#include "webgpu/webgpu_cpp.h"
11#include <emscripten/html5_webgpu.h>
12#if __EMSCRIPTEN_major__ == 1 && \
13 (__EMSCRIPTEN_minor__ < 40 || (__EMSCRIPTEN_minor__ == 40 && __EMSCRIPTEN_tiny__ < 1))
14#error "Emscripten 1.40.1 or higher required"
15#endif
16#elif defined(VTK_USE_DAWN_NATIVE)
17#include "dawn/webgpu_cpp.h"
18#endif // VTK_USE_DAWN_NATIVE
19
20#endif // vtk_wgpu_h