launchMaskToIndices#
Fully qualified name: isaacsim::physics::newton::tensors::launchMaskToIndices
- bool isaacsim::physics::newton::tensors::launchMaskToIndices(
- const uint8_t *mask,
- int *indices,
- int count,
- void *stream = nullptr,
Converts an 8-bit mask to a fixed-size device index array.
indices[i] = mask[i] != 0 ? i : -1foriin[0, count).- Parameters:
mask – Device pointer to the mask array, length
count.indices – Device pointer to the destination index array, length
count.count – Number of mask entries.
stream – CUDA stream to launch on.
- Returns:
trueif the launch succeeded.