我是DirectX、图形和HLSL的新手,我在下面的示例中看到了一些奇怪的代码:
Texture2D g_BaseTexture : register(t0); // It may be used in the second argument in GaussianSample function
static float Gaussian5x5[25] =
{
0.003765f, 0.015019f, 0.023792f, 0.015019f, 0.003765f,
0.015019f, 0.059912f, 0.094907f, 0.059912f, 0.