Exemplo n.º 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();
 }
Exemplo n.º 2
0
 public static unsafe int CreateDXGIFactory1(this DXGI thisApi, Span <Guid> riid, ref void *ppFactory)
 {
     // SpanOverloader
     return(thisApi.CreateDXGIFactory1(ref riid.GetPinnableReference(), ref ppFactory));
 }
Exemplo n.º 3
0
 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));
 }
Exemplo n.º 4
0
 public static unsafe int CreateDXGIFactory2(this DXGI thisApi, uint Flags, Span <Guid> riid, void **ppFactory)
 {
     // SpanOverloader
     return(thisApi.CreateDXGIFactory2(Flags, ref riid.GetPinnableReference(), ppFactory));
 }
Exemplo n.º 5
0
 public static unsafe int GetDebugInterface(this DXGI thisApi, Span <Guid> riid, void **ppDebug)
 {
     // SpanOverloader
     return(thisApi.GetDebugInterface(ref riid.GetPinnableReference(), ppDebug));
 }