How can i update params for compute shader if i do multiple passes?
I am doing several steps of simulation in a row, and just updating step in params struct seems not to work. code like
FSumulationCS::FParameters passParameters;
for (int i = 0; i<32; i++)
{
passParameters.id = i;
FComputeShaderUtils::Dispatch(RHICmdList, simulationCS, passParameters, FIntVector(Dim, 1, 1));
}
just gives the same id in all passes