views:

159

answers:

2

In the directx post process sample the downfilter FX has the following code in it:

//-----------------------------------------------------------------------------
// Technique: PostProcess
// Desc: Performs post-processing effect that down-filters.
//-----------------------------------------------------------------------------
technique PostProcess
{
    pass p0
    <
        float fScaleX = 0.25f;
        float fScaleY = 0.25f;
    >
    {
        VertexShader = null;
        PixelShader = compile ps_2_0 DownFilter();
        ZEnable = false;
    }
}

I'm just curious, the pass is declared with angle brackets and those two float values. What does it do exactly?

+3  A: 

The items in the angle brackets are annotations:

"user-supplied information (metadata) that is ignored by the effect system" [ http://msdn.microsoft.com/en-us/library/ee415626%28VS.85%29.aspx ]

Paul Baker
+1  A: 

The nVidia article on Using Annoations and Semantics is also a good read for this.

RJFalconer