VTK  9.7.1
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, std::uint32_t bytesPerRow, std::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. More...
 
static void UploadFromDataArray (vtkSmartPointer< vtkWebGPUConfiguration > wgpuConfiguration, wgpu::Texture texture, std::uint32_t bytesPerRow, vtkDataArray *dataArray, const char *description=nullptr)
 Uploads a maximum of bytesToUpload from a vtkDataArray to a texture assuming bytesPerRow bytes of data per row of the texture. More...
 
static wgpu::TexelCopyTextureInfo GetTexelCopyTextureInfo (wgpu::Texture texture, wgpu::Origin3D origin={0, 0, 0}, std::uint32_t mipLevel=0)
 Get the image copy texture from the given texture for use in uploading data to the texture. More...
 
static wgpu::TexelCopyBufferLayout GetDataLayout (wgpu::Texture texture, std::uint32_t bytesPerRow, std::uint32_t srcOffset=0)
 Get the texture data layout from the given texture and bytes per row for use in uploading data to the texture. More...
 

Detailed Description

Definition at line 14 of file vtkWebGPUTextureInternals.h.

Member Function Documentation

static void vtkWebGPUTextureInternals::Upload ( vtkSmartPointer< vtkWebGPUConfiguration >  wgpuConfiguration,
wgpu::Texture  texture,
std::uint32_t  bytesPerRow,
std::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.

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

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

static wgpu::TexelCopyTextureInfo vtkWebGPUTextureInternals::GetTexelCopyTextureInfo ( wgpu::Texture  texture,
wgpu::Origin3D  origin = {0, 0, 0},
std::uint32_t  mipLevel = 0 
)
static

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

static wgpu::TexelCopyBufferLayout vtkWebGPUTextureInternals::GetDataLayout ( wgpu::Texture  texture,
std::uint32_t  bytesPerRow,
std::uint32_t  srcOffset = 0 
)
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: