/// <summary> /// Draws a quad. The effect must have been applied before calling this method with pixel shader having the signature float2:TEXCOORD. /// </summary> /// <param name="texture"></param> public void Draw(CommandList commandList, EffectInstance effectInstance) { pipelineState.State.RootSignature = effectInstance.RootSignature; pipelineState.State.EffectBytecode = effectInstance.Effect.Bytecode; pipelineState.State.BlendState = BlendStates.Default; pipelineState.State.Output.CaptureState(commandList); pipelineState.Update(); commandList.SetPipelineState(pipelineState.CurrentState); Draw(commandList); }