/// <summary>
 /// Get a specific buffer within the chain as a GL texture name
 /// </summary>
 /// <param name="index">
 /// Specifies the index within the chain to retrieve. Must be between 0 and length (see GetTextureSwapChainLength)
 /// or may pass -1 to get the buffer at the CurrentIndex location. (Saving a call to GetTextureSwapChainCurrentIndex)
 /// </param>
 /// <param name="textureId">Returns the GL texture object name associated with the specific index requested</param>
 /// <returns>
 /// Returns an OVRTypes.Result indicating success or failure. In the case of failure, use
 /// Wrap.GetLastError to get more information.
 /// </returns>
 public OVRTypes.Result GetBufferGL(int index, out uint textureId)
 {
     return(OVR.GetTextureSwapChainBufferGL(Session, TextureSwapChainPtr, index, out textureId));
 }