About TextureSampler use hlsl

is there a way that i can input a vertor4 and texcoord like texturesampler use hlsl ? i cant use texturesampler because i only have v4