How do I pass texture to a function in a custom cginc?

Hello

I’m refactoring shader code into a custom cginc but function in the form of:
Function (sampler2d texture) { return tex2d (texture, sampling) }
Throw this error
Unrecognized identifier ‘sampler2d’ at custom.cginc

I have no idea what’s the nuance, can’t find anything with Google

sampler2D

The D is capitalized.

1 Like

I do feel so dumb…