| 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. |
nothing calls this directly
no test coverage detected