Iím doing morph animations on GPU using CUDA. Each frame, I update the vertex buffer before rendering:


cudaGraphicsResourceSetMapFlags(cudaResource, cudaGraphicsMapFlagsWriteDiscard);
cudaError...