g_MeshTexture
: texture file name
sampler MeshTextureSampler =
sampler_state
{
Texture = <g_MeshTexture>;
MipFilter = LINEAR;
MinFilter = LINEAR;
MagFilter = LINEAR;
};
: sampler
I use "tex2D(MeshTextureSampler, In.TextureUV)
"
Which condition in HLSL is similar to if(g_MeshTexture == NULL)
in C++?