locked
D3D Draw error when using D2D ANTIALIAS_MODE?

    Question

  • When I set  m_d2dContext->SetAntialiasMode(D2D1_ANTIALIAS_MODE_PER_PRIMITIVE );

    It comes this ERROR on d2dContext->EndDraw():

    D3D11 ERROR: ID3D11DeviceContext::Draw: When ForcedSampleCount RasterizerState is > 0

    (16 specified), Depth and Stencil must be disabled in the DepthStencil state.

    Rendering results are undefined across different hardware.  [ EXECUTION ERROR #3145940: DEVICE_DRAW_INVALID_USE_OF_FORCED_SAMPLE_COUNT]


    What does it mean?

    (My graphic card is HD7970)       





    • Edited by Raptor K Thursday, March 7, 2013 6:35 AM
    Thursday, March 7, 2013 6:33 AM

All replies

  • Thanks for your feedback, I will involve more experts to investigate it.

     

    Best regards,

    Jesse


    Jesse Jiang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, March 8, 2013 2:30 AM
    Moderator
  • Is this a Direct2D internal BUG ? 

    I didn't set ForcedSampleCount or Depth Stencil , even didn't use D3D ...  Only Direct2D +DirectWrite -- draw some text with DWrite ,convert to path(ID2D1TransformedGeometry), and draw the path with D2D. Seemed no error on my old nVidia Card.






    • Edited by Raptor K Tuesday, March 12, 2013 2:31 PM
    Tuesday, March 12, 2013 2:09 PM