private void Release()
 {
     if (this.comObject != null)
     {
         System.Runtime.InteropServices.Marshal.ReleaseComObject(this.comObject);
         this.comObject = null;
     }
 }
Example #2
0
        public D3D11Resource getD3D11Resource()
        {
            ComInterface.ID3D11Resource l_obj = null;

            l_obj = comObject as ComInterface.ID3D11Resource;

            return(new D3D11Resource(l_obj));
        }
 internal D3D11Resource(ComInterface.ID3D11Resource obj)
 {
     this.comObject = obj;
     native         = Marshal.GetIUnknownForObject(comObject);
 }