コード例 #1
0
        public void Intialize()
        {
            // create device
            m_Device = new H1DX12Device();
            // @TODO - organize command list pools
            H1CommandListPool mainCommandListPool = new H1CommandListPool(m_Device);

            mainCommandListPool.Initialize(H1GlobalDX12Definitions.CMDQUEUE_GRAPHICS);
            m_CmdListPools.Add(mainCommandListPool);

            // create command list fence set
            m_CmdFenceSet = new H1CommandListFenceSet(m_Device);
            m_CmdFenceSet.Initialize();
        }
コード例 #2
0
 public H1CommandList(H1DX12Device refDevice, H1CommandListPool refCommandListPool)
 {
     m_DeviceRef   = refDevice;
     m_PoolRef     = refCommandListPool;
     m_CmdQueueRef = refCommandListPool.CommandQueue;
 }
コード例 #3
0
 public H1SwapChain(H1AsyncCommandQueue asyncCommandQueue, H1CommandListPool commandListPool)
 {
     m_AsyncQueueRef      = asyncCommandQueue;
     m_CommandListPoolRef = commandListPool;
 }