VTK  9.7.20261201
vtkWebGPUEnvironmentMap Class Reference

#include <vtkWebGPUEnvironmentMap.h>

Detailed Description

Generates the image based lighting textures of a WebGPU renderer.

Definition at line 20 of file vtkWebGPUEnvironmentMap.h.

Classes

struct  Source
 The environment texture the lighting textures are generated from. More...

Public Member Functions

bool Update (vtkWebGPUConfiguration *configuration, const Source &source)
bool IsReady () const
WGPUSampler GetSampler () const
WGPUTextureView GetPrefilterView () const
WGPUTextureView GetIrradianceView () const
WGPUTextureView GetLookupTableView () const
WGPUBuffer GetHarmonicsBuffer () const
std::uint32_t GetPrefilterLevels () const
bool Dump (vtkWebGPUConfiguration *configuration, const std::string &directory)
 Reads the generated textures back and writes them in the given directory: the lookup table, every face of the irradiance cube and of each prefilter level as PFM images, and the spherical harmonics coefficients as text.
void ReleaseGraphicsResources ()

Static Public Member Functions

static constexpr std::uint64_t GetHarmonicsBufferSize ()

Member Function Documentation

◆ Update()

bool vtkWebGPUEnvironmentMap::Update ( vtkWebGPUConfiguration * configuration,
const Source & source )

◆ IsReady()

bool vtkWebGPUEnvironmentMap::IsReady ( ) const
inline

Definition at line 45 of file vtkWebGPUEnvironmentMap.h.

◆ GetSampler()

WGPUSampler vtkWebGPUEnvironmentMap::GetSampler ( ) const
inline

Definition at line 47 of file vtkWebGPUEnvironmentMap.h.

◆ GetPrefilterView()

WGPUTextureView vtkWebGPUEnvironmentMap::GetPrefilterView ( ) const
inline

Definition at line 48 of file vtkWebGPUEnvironmentMap.h.

◆ GetIrradianceView()

WGPUTextureView vtkWebGPUEnvironmentMap::GetIrradianceView ( ) const
inline

Definition at line 49 of file vtkWebGPUEnvironmentMap.h.

◆ GetLookupTableView()

WGPUTextureView vtkWebGPUEnvironmentMap::GetLookupTableView ( ) const
inline

Definition at line 50 of file vtkWebGPUEnvironmentMap.h.

◆ GetHarmonicsBuffer()

WGPUBuffer vtkWebGPUEnvironmentMap::GetHarmonicsBuffer ( ) const
inline

Definition at line 51 of file vtkWebGPUEnvironmentMap.h.

◆ GetHarmonicsBufferSize()

constexpr std::uint64_t vtkWebGPUEnvironmentMap::GetHarmonicsBufferSize ( )
inlinestaticconstexpr

Definition at line 52 of file vtkWebGPUEnvironmentMap.h.

◆ GetPrefilterLevels()

std::uint32_t vtkWebGPUEnvironmentMap::GetPrefilterLevels ( ) const
inline

Definition at line 54 of file vtkWebGPUEnvironmentMap.h.

◆ Dump()

bool vtkWebGPUEnvironmentMap::Dump ( vtkWebGPUConfiguration * configuration,
const std::string & directory )

Reads the generated textures back and writes them in the given directory: the lookup table, every face of the irradiance cube and of each prefilter level as PFM images, and the spherical harmonics coefficients as text.

Returns false when a file could not be written.

◆ ReleaseGraphicsResources()

void vtkWebGPUEnvironmentMap::ReleaseGraphicsResources ( )

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