Function flamegpu::scatter_new_agents

Function Documentation

__global__ void flamegpu::scatter_new_agents(const unsigned int threadCount, const unsigned int agent_size, CUDAScatter::ScatterData *scatter_data, const unsigned int scatter_len, const unsigned int out_index_offset)

Scatter kernel for host agent creation Input data is stored in AoS, and translated to SoA for device

Parameters
  • threadCount – Total number of threads required

  • agent_size – The total size of an agent’s variables in memory, for stepping through input array

  • scatter_data – Scatter data array location in memory

  • scatter_len – Length of scatter data array

  • out_index_offset – The number of agents already in the output array (so that they are not overwritten)