Trying to feed a sampler2D into my Custom Function pixel shader but there is no ‘sampler2D’ type for input.
My .hlsl custom function pixel shader is using a tex2D method which expects a sampler2D as the first argument.
If I use Vector4 as an Input Type in my Custom Function instead I get the error
'cannot implicitly convert from ‘float4’ to ‘sampler2D’
Frustrating!
