VTK  9.4.20241222
vtkWebGPUBufferInternals.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 vtkWebGPUBufferInternals_h
4#define vtkWebGPUBufferInternals_h
5
6#include "vtkRenderingWebGPUModule.h"
7#include "vtk_wgpu.h"
8
9VTK_ABI_NAMESPACE_BEGIN
10class VTKRENDERINGWEBGPU_NO_EXPORT vtkWebGPUBufferInternals
11{
12public:
13 // Check whether the given device can create a buffer that is sizeBytes big.
14 static bool CheckBufferSize(const wgpu::Device& device, unsigned long sizeBytes);
15};
16VTK_ABI_NAMESPACE_END
17
18#endif
19// VTK-HeaderTest-Exclude: vtkWebGPUBufferInternals.h
static bool CheckBufferSize(const wgpu::Device &device, unsigned long sizeBytes)