我正在查看代码,我看到了这个功能:
void f4texRECTneighbors(samplerRECT tex, float2 s, out float4 left
, out float4 right, out float4 top, out float4 bottom)
{
left = f4texRECT(tex, s - float2(1, 0));
right = f4texRECT(tex, s + float2(1, 0));
bottom = f4texRECT(tex, s + float2(0, 1));
top = f4texRECT(tex, s - float2(0, 1));
}
我有两个问题: