在DirectX後處理採樣downfilter FX中有以下代碼:HLSL聲明與含有尖括號合格值
//-----------------------------------------------------------------------------
// 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;
}
}
我只是好奇,通被聲明用尖括號和那些兩個浮點值。它究竟做了什麼?