Beispiel #1
0
        public CommandBufferD3D11(CommandQueueD3D11 commandQueue, ID3D11DeviceContext context)
            : base(commandQueue)
        {
            D3D11Context = context;
            _context1    = context.QueryInterfaceOrNull <ID3D11DeviceContext1>();
            _annotation  = context.QueryInterfaceOrNull <ID3DUserDefinedAnnotation>();
            _isImmediate = context.GetContextType() == DeviceContextType.Immediate;

            if (!_isImmediate)
            {
                // The runtime emulates command lists.
                _needWorkaround = !((DeviceD3D11)commandQueue.Device).SupportsCommandLists;
            }
        }
Beispiel #2
0
 public CommandQueueD3D11(DeviceD3D11 device, ID3D11DeviceContext context)
     : base(device, CommandQueueType.Graphics)
 {
     _context     = context;
     _isImmediate = context.GetContextType() == DeviceContextType.Immediate;
 }