Exemple #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;
            }
        }