VTK  9.7.20261127
vtkWebGPUPolyDataMapper2DInternals Class Reference

#include <vtkWebGPUPolyDataMapper2DInternals.h>

Detailed Description

Internal implementation details of vtkWebGPUPolyDataMapper2D.

Definition at line 31 of file vtkWebGPUPolyDataMapper2DInternals.h.

Public Member Functions

 vtkWebGPUPolyDataMapper2DInternals ()
 ~vtkWebGPUPolyDataMapper2DInternals ()
void ReleaseGraphicsResources (vtkWindow *w)
 Release any graphics resources that are being consumed by this mapper.
void UpdateBuffers (vtkViewport *viewport, vtkActor2D *actor, vtkWebGPUPolyDataMapper2D *mapper)
 Convert cells to primitives, update topology and mesh data in webgpu buffers used by shader program.
void RecordDrawCommands (vtkViewport *viewport, const WGPURenderPassEncoder &encoder)
 Record draw calls in the render pass encoder.
void RecordDrawCommands (vtkViewport *viewport, const WGPURenderBundleEncoder &encoder)

Public Attributes

vtkTypeUInt32 PropId = 0
vtkTypeUInt32 WrittenPropId = 0

Constructor & Destructor Documentation

◆ vtkWebGPUPolyDataMapper2DInternals()

vtkWebGPUPolyDataMapper2DInternals::vtkWebGPUPolyDataMapper2DInternals ( )

◆ ~vtkWebGPUPolyDataMapper2DInternals()

vtkWebGPUPolyDataMapper2DInternals::~vtkWebGPUPolyDataMapper2DInternals ( )

Member Function Documentation

◆ ReleaseGraphicsResources()

void vtkWebGPUPolyDataMapper2DInternals::ReleaseGraphicsResources ( vtkWindow * w)

Release any graphics resources that are being consumed by this mapper.

The parameter window could be used to determine which graphic resources to release.

◆ UpdateBuffers()

void vtkWebGPUPolyDataMapper2DInternals::UpdateBuffers ( vtkViewport * viewport,
vtkActor2D * actor,
vtkWebGPUPolyDataMapper2D * mapper )

Convert cells to primitives, update topology and mesh data in webgpu buffers used by shader program.

◆ RecordDrawCommands() [1/2]

void vtkWebGPUPolyDataMapper2DInternals::RecordDrawCommands ( vtkViewport * viewport,
const WGPURenderPassEncoder & encoder )

Record draw calls in the render pass encoder.

It also sets the bind group, graphics pipeline to use before making the draw calls.

◆ RecordDrawCommands() [2/2]

void vtkWebGPUPolyDataMapper2DInternals::RecordDrawCommands ( vtkViewport * viewport,
const WGPURenderBundleEncoder & encoder )

Member Data Documentation

◆ PropId

vtkTypeUInt32 vtkWebGPUPolyDataMapper2DInternals::PropId = 0

Definition at line 194 of file vtkWebGPUPolyDataMapper2DInternals.h.

◆ WrittenPropId

vtkTypeUInt32 vtkWebGPUPolyDataMapper2DInternals::WrittenPropId = 0

Definition at line 195 of file vtkWebGPUPolyDataMapper2DInternals.h.


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