Пример #1
0
 /// <summary>
 /// Dispose
 /// </summary>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         factory.Dispose();
         vertexBuffer.Dispose();
         constBuffer.Dispose();
         effect.Dispose();
     }
     base.Dispose(disposing);
 }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                DisposePSO();

                TextureWhite.Dispose();
                TextureBlack.Dispose();
                TextureRed.Dispose();
                TextureGreen.Dispose();
                TextureBlue.Dispose();

                vertexBuffer.Dispose();
                indexBuffer.Dispose();
                shader.Dispose();
                constBuffer.Dispose();
            }

            base.Dispose(disposing);
        }