Пример #1
0
 public void FreeCommandBuffers(IMgCommandPool commandPool, IMgCommandBuffer[] pCommandBuffers)
 {
     foreach (var item in pCommandBuffers)
     {
         var cmdBuf = (IGLCommandBuffer)item;
         cmdBuf.ResetAllData();
     }
 }
Пример #2
0
 public MgThreadPartition(
     IMgPhysicalDevice physicalDevice,
     IMgDevice device, IMgQueue queue,
     IMgCommandPool commandPool,
     MgPhysicalDeviceMemoryProperties deviceMemoryProperties)
 {
     mPhysicalDevice         = physicalDevice;
     mDevice                 = device;
     this.Queue              = queue;
     this.CommandPool        = commandPool;
     mDeviceMemoryProperties = deviceMemoryProperties;
 }
Пример #3
0
 public void FreeCommandBuffers(IMgCommandPool commandPool, IMgCommandBuffer[] pCommandBuffers)
 {
 }
Пример #4
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);
        }
Пример #5
0
 public Result CreateCommandPool(MgCommandPoolCreateInfo pCreateInfo, IMgAllocationCallbacks allocator, out IMgCommandPool pCommandPool)
 {
     throw new NotImplementedException();
 }
Пример #6
0
 public void FreeCommandBuffers(IMgCommandPool commandPool, IMgCommandBuffer[] pCommandBuffers)
 {
     throw new NotImplementedException();
 }
Пример #7
0
 public Result CreateCommandPool(MgCommandPoolCreateInfo pCreateInfo, IMgAllocationCallbacks allocator, out IMgCommandPool pCommandPool)
 {
     pCommandPool = new GLCommandPool(pCreateInfo.Flags);
     return(Result.SUCCESS);
 }