applyMaskToSetter#

Fully qualified name: isaacsim::physics::newton::tensors::applyMaskToSetter

template<typename Setter>
bool isaacsim::physics::newton::tensors::applyMaskToSetter(
const TensorDesc *maskTensor,
uint32_t viewCount,
std::vector<uint32_t> &scratchMaskIndices,
int modelDeviceOrdinal,
int *deviceIndexScratch,
const char *funcName,
Setter &&setter,
)#

Converts a boolean mask to view indices and invokes an indexed setter. GPU masks are converted in place on the device to avoid host synchronization.