VTK: Rendering/WebGPU/vtkWebGPUInternalsBuffer.h Source File

| VTK 9.3.1

vtkWebGPUInternalsBuffer.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 vtkWebGPUInternalsBuffer_h
4 #define vtkWebGPUInternalsBuffer_h
5
6 #include "vtkRenderingWebGPUModule.h"
7 #include "vtk_wgpu.h"
8
9 VTK_ABI_NAMESPACE_BEGIN
10 class VTKRENDERINGWEBGPU_EXPORT vtkWebGPUInternalsBuffer
11 {
12 public:
13 static wgpu::Buffer Upload(const wgpu::Device& device, unsigned long offset, void* data,
14 unsigned long sizeBytes, wgpu::BufferUsage usage, const char* label = nullptr);
15
16 static wgpu::Buffer CreateABuffer(const wgpu::Device& device, unsigned long sizeBytes,
17 wgpu::BufferUsage usage, bool mappedAtCreation = false, const char* label = nullptr);
18 };
19 VTK_ABI_NAMESPACE_END
20
21 #endif
22 // VTK-HeaderTest-Exclude: vtkWebGPUInternalsBuffer.h
vtkWebGPUInternalsBuffer
Definition: vtkWebGPUInternalsBuffer.h:11
vtkWebGPUInternalsBuffer::CreateABuffer
static wgpu::Buffer CreateABuffer(const wgpu::Device &device, unsigned long sizeBytes, wgpu::BufferUsage usage, bool mappedAtCreation=false, const char *label=nullptr)
vtkWebGPUInternalsBuffer::Upload
static wgpu::Buffer Upload(const wgpu::Device &device, unsigned long offset, void *data, unsigned long sizeBytes, wgpu::BufferUsage usage, const char *label=nullptr)
vtkX3D::offset
@ offset
Definition: vtkX3D.h:438
vtkX3D::data
@ data
Definition: vtkX3D.h:315
vtk_wgpu.h