示例#1
0
 private void EnsurePlatformBuffer(int size)
 {
     if (platformBuffer == null || platformBuffer.Size != size)
     {
         if (platformBuffer != null)
         {
             platformBuffer.Dispose();
         }
         platformBuffer = PlatformRenderer.Context.CreateBuffer(bufferType, size, Dynamic);
         Rebind();
     }
 }