public virtual void LifetimeStateUpdated( D3D12_LIFETIME_STATE NewState ) { var fp = GetFunctionPointer(3); if (m_LifetimeStateUpdatedFunc == null) { m_LifetimeStateUpdatedFunc = (LifetimeStateUpdatedFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(LifetimeStateUpdatedFunc)); } m_LifetimeStateUpdatedFunc(m_ptr, NewState); }
public void LifetimeStateUpdated(D3D12_LIFETIME_STATE NewState) { ((delegate * unmanaged <ID3D12LifetimeOwner *, D3D12_LIFETIME_STATE, void>)(lpVtbl[3]))((ID3D12LifetimeOwner *)Unsafe.AsPointer(ref this), NewState); }