Exemplo n.º 1
0
        public DepthStencilState(IDisposableResource parent, IDepthStencilStateDesc desc)
            : base(parent)
        {
            var video = parent.FindParentOrSelfWithException <Video>();

            com = new DepthStencilStateCom(video.com, ((DepthStencilStateDesc)desc).com);
        }
Exemplo n.º 2
0
 public override void Dispose()
 {
     disposeChilderen();
     if (com != null)
     {
         com.Dispose();
         com = null;
     }
     base.Dispose();
 }
Exemplo n.º 3
0
 public override void Dispose()
 {
     disposeChilderen();
     if (com != null)
     {
         com.Dispose();
         com = null;
     }
     base.Dispose();
 }
Exemplo n.º 4
0
        public DepthStencilState(IDisposableResource parent, IDepthStencilStateDesc desc)
            : base(parent)
        {
            try
            {
                var video = parent.FindParentOrSelfWithException<Video>();

                com = new DepthStencilStateCom();
                var error = com.Init(video.com, ((DepthStencilStateDesc)desc).com);

                if (error == DepthStencilStateError.DepthStencil) Debug.ThrowError("DepthStencil", "Failed to create DepthStencil");
            }
            catch (Exception e)
            {
                Dispose();
                throw e;
            }
        }
Exemplo n.º 5
0
        public DepthStencilState(IDisposableResource parent, IDepthStencilStateDesc desc)
            : base(parent)
        {
            try
            {
                var video = parent.FindParentOrSelfWithException <Video>();

                com = new DepthStencilStateCom();
                var error = com.Init(video.com, ((DepthStencilStateDesc)desc).com);

                if (error == DepthStencilStateError.DepthStencil)
                {
                    Debug.ThrowError("DepthStencil", "Failed to create DepthStencil");
                }
            }
            catch (Exception e)
            {
                Dispose();
                throw e;
            }
        }