示例#1
0
        /// <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);
        }
示例#2
0
    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();
            }
        }
    }
示例#3
0
        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);
        }
示例#4
0
 public HRESULT ValidateContext(ID3D11DeviceContext *pContext)
 {
     return(((delegate * unmanaged <ID3D11Debug *, ID3D11DeviceContext *, int>)(lpVtbl[9]))((ID3D11Debug *)Unsafe.AsPointer(ref this), pContext));
 }
示例#5
0
 public int ValidateContextForDispatch([NativeTypeName("ID3D11DeviceContext *")] ID3D11DeviceContext *pContext)
 {
     return(((delegate * unmanaged <ID3D11Debug *, ID3D11DeviceContext *, int>)(lpVtbl[11]))((ID3D11Debug *)Unsafe.AsPointer(ref this), pContext));
 }
示例#6
0
文件: Context.cs 项目: Golle/Titan
 public Context(ID3D11DeviceContext *context)
 {
     _context = context;
 }
示例#7
0
        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);
        }
示例#8
0
 public int ValidateContext([NativeTypeName("ID3D11DeviceContext *")] ID3D11DeviceContext *pContext)
 {
     return(((delegate * stdcall <ID3D11Debug *, ID3D11DeviceContext *, int>)(lpVtbl[9]))((ID3D11Debug *)Unsafe.AsPointer(ref this), pContext));
 }