Difference between shadergraph's Sample Texture 2D array and UNITY_SAMPLE_TEX2DARRAY

Hello there !
I’m trying to update my old shader using a texture array to the new URP using shader graphs.
The thing is, i’m a total stranger when it’s about shader scripts and shader graph.
What i undertand is UNITY_SAMPLE_TEX2DARRAY takes the texture array and a vecto3 in to return a color and the Shader graph sampler asks for a vector2 and an index instead.
My question is, are they the same parameters between the two functions (with the vector3 being separated in a Vector2 and an index) or is the use of these functions are completely different ?

I hope you can help me better understand what i’m doing ! :slight_smile:

Clément.

Hi!
Yes, they should be the same.

1 Like