Hlsl Tex2d, For example, the following statement declares … Samples a texture.