static void WriteComputeTextureToDisk(const std::string &filepath, vtkSmartPointer< vtkWebGPUComputePass >, int textureIndex, int mipLevel, bool flipY=false)
Writes a certain mip level of a texture from a compute path to a PNG file on the disk.
TextureFormat
RGBA8_UNORM: Uses RGB + alpha.