Cuda Program to Render a complex graphic frame