VTK  9.4.20250206
Public Member Functions | List of all members
vtkWebGPUPolyDataMapper2DInternals Class Reference

Internal implementation details of vtkWebGPUPolyDataMapper2D. More...

#include <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 wgpu::RenderPassEncoder &encoder)
 Record draw calls in the render pass encoder.
 
void RecordDrawCommands (vtkViewport *viewport, const wgpu::RenderBundleEncoder &encoder)
 

Detailed Description

Internal implementation details of vtkWebGPUPolyDataMapper2D.

Definition at line 26 of file vtkWebGPUPolyDataMapper2DInternals.h.

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 wgpu::RenderPassEncoder &  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 wgpu::RenderBundleEncoder &  encoder 
)

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