Exemple #1
0
        internal CommandEncoder(GraphicsDevice graphicsDevice, DeviceContext context, RenderPassDescriptor renderPassDescriptor)
            : base(graphicsDevice)
        {
            _context = context;
            _renderPassDescriptor = renderPassDescriptor;

            _renderPassDescriptor.OnOpenedCommandList(_context);
        }
Exemple #2
0
 private CommandEncoder PlatformGetCommandEncoder(RenderPassDescriptor renderPassDescriptor)
 {
     return(new CommandEncoder(
                GraphicsDevice,
                _deviceCommandBuffer.CreateRenderCommandEncoder(renderPassDescriptor.DeviceRenderPassDescriptor)));
 }