Example #1
0
 protected DX12Sample(string name) : base(name)
 {
     _renderTargets        = new ID3D12Resource *[2];
     _commandAllocators    = new ID3D12CommandAllocator *[2];
     _fenceValues          = new ulong[2];
     _graphicsCommandLists = new ID3D12GraphicsCommandList *[2];
     _d3d12 = Silk.NET.Direct3D12.D3D12.GetApi();
     _dxgi  = DXGI.GetApi();
 }
 public static unsafe int CreateDXGIFactory1(this DXGI thisApi, Span <Guid> riid, ref void *ppFactory)
 {
     // SpanOverloader
     return(thisApi.CreateDXGIFactory1(ref riid.GetPinnableReference(), ref ppFactory));
 }
 public static unsafe int GetDebugInterface1(this DXGI thisApi, uint Flags, Span <Guid> riid, ref void *pDebug)
 {
     // SpanOverloader
     return(thisApi.GetDebugInterface1(Flags, ref riid.GetPinnableReference(), ref pDebug));
 }
 public static unsafe int CreateDXGIFactory2(this DXGI thisApi, uint Flags, Span <Guid> riid, void **ppFactory)
 {
     // SpanOverloader
     return(thisApi.CreateDXGIFactory2(Flags, ref riid.GetPinnableReference(), ppFactory));
 }
 public static unsafe int GetDebugInterface(this DXGI thisApi, Span <Guid> riid, void **ppDebug)
 {
     // SpanOverloader
     return(thisApi.GetDebugInterface(ref riid.GetPinnableReference(), ppDebug));
 }