g_MeshTexture
: 纹理文件名
sampler MeshTextureSampler =
sampler_state
{
Texture = <g_MeshTexture>;
MipFilter = LINEAR;
MinFilter = LINEAR;
MagFilter = LINEAR;
};
: 采样器
我用“ tex2D(MeshTextureSampler, In.TextureUV)
”
HLSL 中的哪个条件类似于if(g_MeshTexture == NULL)
C++ 中的条件?