title: Fixing a syntax error and rendering not showing with RayWenderlich Metal part 2 tutorial
body: <p>I am trying to learn Metal when all of a sudden I get hit with a syntax error. I was wondering why the person tried to add an UnsafeMutablePointer, but that is beside the point. I tried moving the stuff so it doesn't try to add an int to and UnsafeMutablePointer, but the cube just outright disappears.</p>
  
  <p>This tutorial seems to have a programming syntax error and moving the cause into a different parameter or this doesn't help at all (it erases everything). (This isn't because of updates to the language).</p>
  
  <p>The Gitlab to the project (I am going to keep it to one file) and the problem is at around 67. Here is what the code looks like :</p>
  
  <pre><code>memcpy(bufferPointer + MemoryLayout&lt;Float&gt;.size * Matrix4.numberOfElements(), projectionMatrix.raw(), MemoryLayout&lt;Float&gt;.size * Matrix4.numberOfElements())
  </code></pre>
  
  <p>Here is the Gitlab link if you want a closer look at the whole file for context:</p>
  
  <pre><code>        let bufferPointer = uniformBuffer?.contents()
          memcpy(bufferPointer, nodeModelMatrix.raw(), MemoryLayout&lt;Float&gt;.size * Matrix4.numberOfElements())
  
          //come back to here
          memcpy(bufferPointer + MemoryLayout&lt;Float&gt;.size * Matrix4.numberOfElements(), projectionMatrix.raw(), MemoryLayout&lt;Float&gt;.size * Matrix4.numberOfElements())
  </code></pre>