コード例 #1
0
        public static void DXGIReportLiveObjects(Guid apiid, DXGI_DEBUG_RLO_FLAGS flags = DXGI_DEBUG_RLO_FLAGS.DXGI_DEBUG_RLO_ALL)
        {
            if (!IsDebugLayerAvailable)
            {
                return;
            }

            DXGIGetDebugInterface(typeof(IDXGIDebug).GUID, out var debug);
            if (!(debug is IDXGIDebug dbg))
            {
                return;
            }

            dbg.ReportLiveObjects(apiid, flags);
            Marshal.ReleaseComObject(debug);
        }
コード例 #2
0
 public HRESULT ReportLiveObjects(Guid apiid, DXGI_DEBUG_RLO_FLAGS flags)
 {
     return(((delegate * unmanaged <IDXGIDebug *, Guid, DXGI_DEBUG_RLO_FLAGS, int>)(lpVtbl[3]))((IDXGIDebug *)Unsafe.AsPointer(ref this), apiid, flags));
 }
コード例 #3
0
 public static void DXGIReportLiveObjects(DXGI_DEBUG_RLO_FLAGS flags = DXGI_DEBUG_RLO_FLAGS.DXGI_DEBUG_RLO_ALL) => DXGIReportLiveObjects(DXGIConstants.DXGI_DEBUG_ALL, flags);
コード例 #4
0
 public int ReportLiveObjects([NativeTypeName("GUID")] Guid apiid, DXGI_DEBUG_RLO_FLAGS flags)
 {
     return(((delegate * unmanaged <IDXGIDebug1 *, Guid, DXGI_DEBUG_RLO_FLAGS, int>)(lpVtbl[3]))((IDXGIDebug1 *)Unsafe.AsPointer(ref this), apiid, flags));
 }