resolveGpuViewIndices#
Fully qualified name: isaacsim::physics::newton::tensors::resolveGpuViewIndices
- inline GpuIndexGuard isaacsim::physics::newton::tensors::resolveGpuViewIndices(
- const TensorDesc *indexTensor,
- uint32_t defaultCount,
- int *devScratchBuf = nullptr,
Resolves an index tensor for GPU kernel use. If the tensor is on GPU, returns its pointer directly. If on CPU and devScratchBuf is provided, performs H2D copy into the scratch buffer. If indexTensor is null, returns count = defaultCount with ptr = nullptr (signaling identity/all-elements to the kernel).