Beispiel #1
0
 /// <summary>
 /// Disposes the root signature.
 /// </summary>
 /// <param name="disposing"></param>
 protected override void Dispose(bool disposing)
 {
     if (!IsDisposed)
     {
         NativeRootSignature.Dispose();
     }
     base.Dispose(disposing);
 }
        protected internal override void OnDestroyed()
        {
            RootSignature?.Dispose();
            RootSignature = null;

            CompiledState?.Dispose();
            CompiledState = null;

            base.OnDestroyed();
        }