Function flamegpu::detail::broadcastInitKernel

Function Documentation

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

Broadcast kernel for initialising agent variables to default on device Input data is stored pointed directly do by scatter_data and translated to SoA for device

Parameters:
  • threadCount – Total number of threads required

  • 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)