Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandContext"/> class.
 /// </summary>
 /// <param name="type">The <see cref="CommandListType"/></param>
 private CommandContext(CommandListType type)
 {
     _Type = type;
     _DynamicViewDescriptorHeap    = new DynamicDescriptorHeap(this, DescriptorHeapType.ConstantBufferViewShaderResourceViewUnorderedAccessView);
     _DynamicSamplerDescriptorHeap = new DynamicDescriptorHeap(this, DescriptorHeapType.Sampler);
     _CpuLinearAllocator           = new LinearAllocator(ELinearAllocatorType.CpuWritable);
     _GpuLinearAllocator           = new LinearAllocator(ELinearAllocatorType.GpuExclusive);
 }
Пример #2
0
 public static void DestroyAllContexts()
 {
     LinearAllocator.DestroyAll();
     DynamicDescriptorHeap.DestroyAll();
     Globals.ContextManager.DestroyAllContexts();
 }