VTK  9.4.20250114
Static Public Member Functions | List of all members
vtkWebGPUTextureInternals Class Reference

#include <vtkWebGPUTextureInternals.h>

Static Public Member Functions

static void Upload (vtkSmartPointer< vtkWebGPUConfiguration > wgpuConfiguration, wgpu::Texture texture, uint32_t bytesPerRow, uint32_t byteSize, const void *data, const char *description=nullptr)
 Upload byteSize of data from the data pointer to the given texture using the given device and assuming bytesPerRow bytes of data per row of the texture.
 
static void UploadFromDataArray (vtkSmartPointer< vtkWebGPUConfiguration > wgpuConfiguration, wgpu::Texture texture, uint32_t bytesPerRow, vtkDataArray *dataArray, const char *description=nullptr)
 Uploads a maximum of bytesToUpload from a vtkDataArray to a texure assuming bytesPerRow bytes of data per row of the texture.
 
static wgpu::ImageCopyTexture GetImageCopyTexture (wgpu::Texture texture)
 Get the image copy texture from the given texture for use in uploading data to the texture.
 
static wgpu::TextureDataLayout GetDataLayout (wgpu::Texture texture, uint32_t bytesPerRow)
 Get the texture data layout from the given texture and bytes per row for use in uploading data to the texture.
 

Detailed Description

Definition at line 14 of file vtkWebGPUTextureInternals.h.

Member Function Documentation

◆ Upload()

static void vtkWebGPUTextureInternals::Upload ( vtkSmartPointer< vtkWebGPUConfiguration wgpuConfiguration,
wgpu::Texture  texture,
uint32_t  bytesPerRow,
uint32_t  byteSize,
const void *  data,
const char *  description = nullptr 
)
static

Upload byteSize of data from the data pointer to the given texture using the given device and assuming bytesPerRow bytes of data per row of the texture.

◆ UploadFromDataArray()

static void vtkWebGPUTextureInternals::UploadFromDataArray ( vtkSmartPointer< vtkWebGPUConfiguration wgpuConfiguration,
wgpu::Texture  texture,
uint32_t  bytesPerRow,
vtkDataArray dataArray,
const char *  description = nullptr 
)
static

Uploads a maximum of bytesToUpload from a vtkDataArray to a texure assuming bytesPerRow bytes of data per row of the texture.

◆ GetImageCopyTexture()

static wgpu::ImageCopyTexture vtkWebGPUTextureInternals::GetImageCopyTexture ( wgpu::Texture  texture)
static

Get the image copy texture from the given texture for use in uploading data to the texture.

◆ GetDataLayout()

static wgpu::TextureDataLayout vtkWebGPUTextureInternals::GetDataLayout ( wgpu::Texture  texture,
uint32_t  bytesPerRow 
)
static

Get the texture data layout from the given texture and bytes per row for use in uploading data to the texture.


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