Question by
Vyvernn · Mar 09, 2021 at 12:02 PM ·
shadertexturegraphicssurface shader
How do i pass a Texture 2D Array into a function as a parameter
As the question states, how do i pass a Tex2dArray into a function as a parameter? currently i have this:
void foo(UNITY_DECLARE_TEX2DARRAY(myTex2DArray))
{
//Do stuff
}
But my shader isn't working, is this actually possible or do i need to try find a work around?
Comment