/// <summary>To be documented.</summary> public readonly unsafe int ValidateContextForDispatch(ID3D11DeviceContext *pContext) { var @this = (ID3D11Debug *)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); int ret = default; ret = ((delegate * unmanaged[Cdecl] < ID3D11Debug *, ID3D11DeviceContext *, int >)LpVtbl[11])(@this, pContext); return(ret); }
protected override void DestroyDeviceDependentResources() { DestroyAssets(); DestroyImmediateContext(); DestroyD3DDevice(); DestroyDxgiAdapter(); DestroyDxgiFactory(); void DestroyD3DDevice() { var d3dDevice = _d3dDevice; if (d3dDevice != null) { _d3dDevice = null; _ = d3dDevice->Release(); } } void DestroyDxgiAdapter() { var dxgiAdapter = _dxgiAdapter; if (dxgiAdapter != null) { _dxgiAdapter = null; _ = dxgiAdapter->Release(); } } void DestroyDxgiFactory() { var dxgiFactory = _dxgiFactory; if (dxgiFactory != null) { _dxgiFactory = null; _ = dxgiFactory->Release(); } } void DestroyImmediateContext() { var immediateContext = _immediateContext; if (immediateContext != null) { _immediateContext = null; _ = immediateContext->Release(); } } }
protected override void Dispose(bool isDisposing) { var swapChain = _swapChain; if (swapChain != null) { _swapChain = null; _ = swapChain->Release(); } var immediateContext = _immediateContext; if (immediateContext != null) { _immediateContext = null; _ = immediateContext->Release(); } var device = _device; if (device != null) { _device = null; _ = device->Release(); } var renderTarget = _renderTarget; if (renderTarget != null) { _renderTarget = null; _ = renderTarget->Release(); } base.Dispose(isDisposing); }
public HRESULT ValidateContext(ID3D11DeviceContext *pContext) { return(((delegate * unmanaged <ID3D11Debug *, ID3D11DeviceContext *, int>)(lpVtbl[9]))((ID3D11Debug *)Unsafe.AsPointer(ref this), pContext)); }
public int ValidateContextForDispatch([NativeTypeName("ID3D11DeviceContext *")] ID3D11DeviceContext *pContext) { return(((delegate * unmanaged <ID3D11Debug *, ID3D11DeviceContext *, int>)(lpVtbl[11]))((ID3D11Debug *)Unsafe.AsPointer(ref this), pContext)); }
public Context(ID3D11DeviceContext *context) { _context = context; }
protected override void Dispose(bool isDisposing) { var vertexBuffer = _vertexBuffer; if (vertexBuffer != null) { _vertexBuffer = null; _ = vertexBuffer->Release(); } var inputLayout = _inputLayout; if (inputLayout != null) { _inputLayout = null; _ = inputLayout->Release(); } var pixelShader = _pixelShader; if (pixelShader != null) { _pixelShader = null; _ = pixelShader->Release(); } var vertexShader = _vertexShader; if (vertexShader != null) { _vertexShader = null; _ = vertexShader->Release(); } var swapChain = _swapChain; if (swapChain != null) { _swapChain = null; _ = swapChain->Release(); } var immediateContext = _immediateContext; if (immediateContext != null) { _immediateContext = null; _ = immediateContext->Release(); } var device = _device; if (device != null) { _device = null; _ = device->Release(); } var renderTarget = _renderTarget; if (renderTarget != null) { _renderTarget = null; _ = renderTarget->Release(); } base.Dispose(isDisposing); }
public int ValidateContext([NativeTypeName("ID3D11DeviceContext *")] ID3D11DeviceContext *pContext) { return(((delegate * stdcall <ID3D11Debug *, ID3D11DeviceContext *, int>)(lpVtbl[9]))((ID3D11Debug *)Unsafe.AsPointer(ref this), pContext)); }