locked
Any more info on D2D Custom Effect ? RRS feed

  • Question

  • float4 main(
        float4 pos      : SV_POSITION,
        float4 posScene : SCENE_POSITION,
        float4 uv0      : TEXCOORD0
        ) : SV_Target
    {
    }

    This is a Pixel Shader  in sample custom d2d effect, is there a default Vertex Shader, and what does the parameters mean?

    The uv0(TEXCOORD0) seems not from 0.0 to 1.0 ?


    C++ DX11

    Saturday, July 21, 2012 4:17 PM

Answers

  • Hello,

    I apologize but unfortunately I don't really know what you are asking. Direct2D can use its vertex shaders to continue to accumulate shader constant data and then issue one Direct3D Draw call for a large number of Direct2D Draw calls.

    Does this answer your question?

    Thanks,

    James


    Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    • Marked as answer by Raptor K Tuesday, August 28, 2012 2:33 AM
    Tuesday, August 28, 2012 12:55 AM
    Moderator