MCPcopy Create free account
hub / github.com/Kitware/VTK / UpdateInstancePropertiesBuffer

Function UpdateInstancePropertiesBuffer

Rendering/WebGPU/vtkWebGPUGlyph3DMapper.cxx:351–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349 }
350
351 void UpdateInstancePropertiesBuffer(vtkSmartPointer<vtkWebGPUConfiguration> wgpuConfiguration)
352 {
353 InstanceProperties instanceProperties = {};
354 instanceProperties.CompositeId = this->FlatIndex;
355 instanceProperties.Pickable = this->Pickable ? 1u : 0u;
356 instanceProperties.ProcessId = 1;
357 wgpuConfiguration->WriteBuffer(this->InstancePropertiesBuffer, 0, &instanceProperties,
358 sizeof(InstanceProperties), "InstanceProperties");
359 }
360
361 // Defines parametric coordinates for a TriangleList (6 elements) instead of TriangleStrip (4
362 // elements) because we use the instance_id for glyphing.

Callers

nothing calls this directly

Calls 1

WriteBufferMethod · 0.45

Tested by

no test coverage detected