4 UpdateFixedVertexPositions(
\r
6 __global int * g_anchorIndex,
\r
7 __global float4 * g_vertexPositions,
\r
8 __global float4 * g_anchorPositions GUID_ARG)
\r
10 unsigned int nodeID = get_global_id(0);
\r
12 if( nodeID < numNodes )
\r
14 int anchorIndex = g_anchorIndex[nodeID];
\r
15 float4 position = g_vertexPositions[nodeID];
\r
17 if ( anchorIndex >= 0 )
\r
19 float4 anchorPosition = g_anchorPositions[anchorIndex];
\r
20 g_vertexPositions[nodeID] = anchorPosition;
\r