VTK
9.4.20250206
|
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) |
Internal implementation details of vtkWebGPUPolyDataMapper2D.
Definition at line 26 of file vtkWebGPUPolyDataMapper2DInternals.h.
vtkWebGPUPolyDataMapper2DInternals::vtkWebGPUPolyDataMapper2DInternals | ( | ) |
vtkWebGPUPolyDataMapper2DInternals::~vtkWebGPUPolyDataMapper2DInternals | ( | ) |
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.
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.
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.
void vtkWebGPUPolyDataMapper2DInternals::RecordDrawCommands | ( | vtkViewport * | viewport, |
const wgpu::RenderBundleEncoder & | encoder | ||
) |