VTK  9.4.20250202
Static Public Member Functions | List of all members
vtkWebGPUHelpers Class Reference

#include <vtkWebGPUHelpers.h>

Static Public Member Functions

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.
 

Detailed Description

Definition at line 13 of file vtkWebGPUHelpers.h.

Member Function Documentation

◆ WriteComputeTextureToDisk()

static void vtkWebGPUHelpers::WriteComputeTextureToDisk ( const std::string &  filepath,
vtkSmartPointer< vtkWebGPUComputePass ,
int  textureIndex,
int  mipLevel,
bool  flipY = false 
)
static

Writes a certain mip level of a texture from a compute path to a PNG file on the disk.

This function behaves like Dispatch(), ReadBufferFromGPU(), ReadTextureFromGPU(), .. in the sense that it will only be executed after a call to vtkWebGPUComputePipeline::Update().

The flipY parameter is used the flip the output along the Y-axis. Useful if the texture's internal storage is reversed along the Y-axis


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