#include <vtkWebGPUTextureInternals.h>
|
static wgpu::Texture | CreateATexture (const wgpu::Device &device, wgpu::Extent3D extents, wgpu::TextureDimension dimension, wgpu::TextureFormat format, wgpu::TextureUsage usage, int mipLevelCount=1, std::string label="") |
| Creates a WebGPU texture with the given device and returns it.
|
|
static wgpu::TextureView | CreateATextureView (const wgpu::Device &device, wgpu::Texture texture, wgpu::TextureViewDimension dimension, wgpu::TextureAspect aspect, wgpu::TextureFormat format, int baseMipLevel, int mipLevelCount, std::string label) |
| Creates a texture view of a texture.
|
|
static void | Upload (const wgpu::Device &device, wgpu::Texture texture, uint32_t bytesPerRow, uint32_t byteSize, const void *data) |
| 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 (const wgpu::Device &device, wgpu::Texture texture, uint32_t bytesPerRow, vtkDataArray *dataArray) |
| 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.
|
|
Definition at line 13 of file vtkWebGPUTextureInternals.h.
◆ CreateATexture()
static wgpu::Texture vtkWebGPUTextureInternals::CreateATexture |
( |
const wgpu::Device & |
device, |
|
|
wgpu::Extent3D |
extents, |
|
|
wgpu::TextureDimension |
dimension, |
|
|
wgpu::TextureFormat |
format, |
|
|
wgpu::TextureUsage |
usage, |
|
|
int |
mipLevelCount = 1 , |
|
|
std::string |
label = "" |
|
) |
| |
|
static |
Creates a WebGPU texture with the given device and returns it.
◆ CreateATextureView()
static wgpu::TextureView vtkWebGPUTextureInternals::CreateATextureView |
( |
const wgpu::Device & |
device, |
|
|
wgpu::Texture |
texture, |
|
|
wgpu::TextureViewDimension |
dimension, |
|
|
wgpu::TextureAspect |
aspect, |
|
|
wgpu::TextureFormat |
format, |
|
|
int |
baseMipLevel, |
|
|
int |
mipLevelCount, |
|
|
std::string |
label |
|
) |
| |
|
static |
Creates a texture view of a texture.
◆ Upload()
static void vtkWebGPUTextureInternals::Upload |
( |
const wgpu::Device & |
device, |
|
|
wgpu::Texture |
texture, |
|
|
uint32_t |
bytesPerRow, |
|
|
uint32_t |
byteSize, |
|
|
const void * |
data |
|
) |
| |
|
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 |
( |
const wgpu::Device & |
device, |
|
|
wgpu::Texture |
texture, |
|
|
uint32_t |
bytesPerRow, |
|
|
vtkDataArray * |
dataArray |
|
) |
| |
|
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: