public virtual Result Lock(SWIGTYPE_p_D3D11_MAPPED_SUBRESOURCE data) { Result ret = new Result(IronSightEnginePINVOKE.ITexture_Lock(swigCPtr, SWIGTYPE_p_D3D11_MAPPED_SUBRESOURCE.getCPtr(data)), true); // if (IronSightEnginePINVOKE.SWIGPendingException.Pending) { throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_D3D11_MAPPED_SUBRESOURCE obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }