Esempio n. 1
0
        public Result CreateCommandPool(MgCommandPoolCreateInfo pCreateInfo, IMgAllocationCallbacks allocator, out IMgCommandPool pCommandPool)
        {
            var queue      = mDevice.CreateCommandQueue(mQuery.NoOfCommandBufferSlots);
            var depthCache = new AmtCmdDepthStencilCache();

            pCommandPool = new AmtCommandPool(queue, pCreateInfo, depthCache);
            return(Result.SUCCESS);
        }
Esempio n. 2
0
        public AmtCommandPool(
            IMTLCommandQueue queue,
            MgCommandPoolCreateInfo pCreateInfo,
            IAmtCmdDepthStencilCache depthCache)
        {
            mQueue = queue;

            CanIndividuallyReset = (pCreateInfo.Flags & MgCommandPoolCreateFlagBits.RESET_COMMAND_BUFFER_BIT)
                                   == MgCommandPoolCreateFlagBits.RESET_COMMAND_BUFFER_BIT;

            mBuffers   = new List <AmtCommandBuffer>();
            DepthCache = depthCache;
        }
Esempio n. 3
0
 public Result CreateCommandPool(MgCommandPoolCreateInfo pCreateInfo, IMgAllocationCallbacks allocator, out IMgCommandPool pCommandPool)
 {
     throw new NotImplementedException();
 }
Esempio n. 4
0
 public Result CreateCommandPool(MgCommandPoolCreateInfo pCreateInfo, IMgAllocationCallbacks allocator, out IMgCommandPool pCommandPool)
 {
     pCommandPool = new GLCommandPool(pCreateInfo.Flags);
     return(Result.SUCCESS);
 }