VTK  9.4.20251007
vtkWebGPUBufferInternals Class Reference

#include <vtkWebGPUBufferInternals.h>

Static Public Member Functions

static wgpu::Buffer Upload (const wgpu::Device &device, unsigned long offset, void *data, unsigned long sizeBytes, wgpu::BufferUsage usage, const char *label=nullptr)
static void UploadFromDataArray (wgpu::Device device, wgpu::Buffer wgpuBuffer, vtkDataArray *dataArray)
 Uploads a vtkDataArray to the given wgpuBuffer.
static void UploadFromDataArray (wgpu::Device device, wgpu::Buffer wgpuBuffer, vtkIdType byteOffset, vtkDataArray *dataArray)
 Uploads a vtkDataArray with offset to the given wgpuBuffer.
static wgpu::Buffer CreateBuffer (const wgpu::Device &device, unsigned long sizeBytes, wgpu::BufferUsage usage, bool mappedAtCreation=false, const char *label=nullptr)
static bool CheckBufferSize (const wgpu::Device &device, unsigned long sizeBytes)

Detailed Description

Definition at line 11 of file vtkWebGPUBufferInternals.h.

Member Function Documentation

◆ Upload()

wgpu::Buffer vtkWebGPUBufferInternals::Upload ( const wgpu::Device & device,
unsigned long offset,
void * data,
unsigned long sizeBytes,
wgpu::BufferUsage usage,
const char * label = nullptr )
static

◆ UploadFromDataArray() [1/2]

void vtkWebGPUBufferInternals::UploadFromDataArray ( wgpu::Device device,
wgpu::Buffer wgpuBuffer,
vtkDataArray * dataArray )
static

Uploads a vtkDataArray to the given wgpuBuffer.

◆ UploadFromDataArray() [2/2]

void vtkWebGPUBufferInternals::UploadFromDataArray ( wgpu::Device device,
wgpu::Buffer wgpuBuffer,
vtkIdType byteOffset,
vtkDataArray * dataArray )
static

Uploads a vtkDataArray with offset to the given wgpuBuffer.

◆ CreateBuffer()

wgpu::Buffer vtkWebGPUBufferInternals::CreateBuffer ( const wgpu::Device & device,
unsigned long sizeBytes,
wgpu::BufferUsage usage,
bool mappedAtCreation = false,
const char * label = nullptr )
static

◆ CheckBufferSize()

bool vtkWebGPUBufferInternals::CheckBufferSize ( const wgpu::Device & device,
unsigned long sizeBytes )
static

The documentation for this class was generated from the following file: