22 std::uint32_t bytesPerRow, std::uint32_t byteSize,
const void* data,
23 const char* description =
nullptr);
30 WGPUTexture texture, std::uint32_t bytesPerRow,
vtkDataArray* dataArray,
31 const char* description =
nullptr);
37 WGPUTexture texture, WGPUOrigin3D origin = { 0, 0, 0 }, std::uint32_t mipLevel = 0);
44 WGPUTexture texture, std::uint32_t bytesPerRow, std::uint32_t srcOffset = 0);
static WGPUTexelCopyBufferLayout GetDataLayout(WGPUTexture 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...
static void Upload(vtkSmartPointer< vtkWebGPUConfiguration > wgpuConfiguration, WGPUTexture 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 assumin...
static WGPUTexelCopyTextureInfo GetTexelCopyTextureInfo(WGPUTexture texture, WGPUOrigin3D 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.
static void UploadFromDataArray(vtkSmartPointer< vtkWebGPUConfiguration > wgpuConfiguration, WGPUTexture 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 dat...