8
UpdatePositionsFromVelocitiesKernel(
10
const float solverSDT,
11
__global float4 * g_vertexVelocities,
12
__global float4 * g_vertexPreviousPositions,
13
__global float4 * g_vertexCurrentPosition GUID_ARG)
15
int vertexID = get_global_id(0);
16
if( vertexID < numNodes )
18
float4 previousPosition = g_vertexPreviousPositions[vertexID];
19
float4 velocity = g_vertexVelocities[vertexID];
21
float4 newPosition = previousPosition + velocity*solverSDT;
23
g_vertexCurrentPosition[vertexID] = newPosition;
24
g_vertexPreviousPositions[vertexID] = newPosition;
b'\\ No newline at end of file'