Exemple #1
0
 protected override void DoDispose()
 {
     instances.Dispose();
     indices.Dispose();
     vertexConstants.Dispose();
     base.DoDispose();
 }
Exemple #2
0
 public void Dispose()
 {
     if (!disposed)
     {
         disposed = true;
         vertexShader.Dispose();
         pixelShader.Dispose();
         constants.Dispose();
     }
 }
 public void Dispose()
 {
     if (!disposed)
     {
         disposed = true;
         vertexShader.Dispose();
         pixelShader.Dispose();
         instances.Dispose();
         vertexConstants.Dispose();
         OnDispose();
     }
 }
 protected override void DoDispose()
 {
     constants.Dispose();
     base.DoDispose();
 }