3#ifndef vtkWebGPUInternalsBuffer_h
4#define vtkWebGPUInternalsBuffer_h
6#include "vtkRenderingWebGPUModule.h"
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);
16 static wgpu::Buffer
CreateABuffer(
const wgpu::Device& device,
unsigned long sizeBytes,
17 wgpu::BufferUsage usage,
bool mappedAtCreation =
false,
const char* label =
nullptr);
static wgpu::Buffer CreateABuffer(const wgpu::Device &device, unsigned long sizeBytes, wgpu::BufferUsage usage, bool mappedAtCreation=false, const char *label=nullptr)
static wgpu::Buffer Upload(const wgpu::Device &device, unsigned long offset, void *data, unsigned long sizeBytes, wgpu::BufferUsage usage, const char *label=nullptr)