Beispiel #1
0
        /// <summary>
        /// Release the memory from the VRAM.
        /// </summary>
        public void ReleaseMemory()
        {
            StagingBuffer?.Dispose();
            StagingBuffer = null;

            IndexBuffer?.Dispose();
            IndexBuffer = null;

            StagingVRAM?.Free();
            VertexVRAM?.Free();
        }
Beispiel #2
0
 public virtual void Dispose()
 {
     StagingBuffer.Dispose();
     DeviceBuffer.Dispose();
 }