mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 09:59:12 +00:00
14460dbb31
Previously, `ArrayHandleConstant` did not really support component extraction. Instead, it let a fallback operation create a full array on the CPU. Component extraction is now quite efficient for `ArrayHandleConstant`. It creates a basic `ArrayHandle` with one entry and sets a modulo on the `ArrayHandleStride` to access that value for all indices.
10 lines
425 B
Markdown
10 lines
425 B
Markdown
# Added support for component extraction from ArrayHandleConstant better
|
|
|
|
Previously, `ArrayHandleConstant` did not really support component
|
|
extraction. Instead, it let a fallback operation create a full array on
|
|
the CPU.
|
|
|
|
Component extraction is now quite efficient for `ArrayHandleConstant`. It
|
|
creates a basic `ArrayHandle` with one entry and sets a modulo on the
|
|
`ArrayHandleStride` to access that value for all indices.
|