How can I access _CameraDepthTexture in Unity 6000.10f1 in a HLSL code? Back in 2022 it worked like:
SAMPLER(sampler_CameraDepthTexture);
TEXTURE2D(_CameraNormalsTexture);
SAMPLER(sampler_CameraNormalsTexture);```
But the same code doesn't work on 6000.10f1.
I tried
` float DepthValue = SAMPLE_TEXTURE2D_X(_CameraDepthTexture, sampler_CameraDepthTexture, ScreenUV).r;`
and the same problem with cmaera normals and normals texel size.
I'm trying to use with a custom function inside a subgraph, I tried a hack I saw in the forums of having the SceneDepth just multiplying by 0 so ShaderGraph could fetch it automatically but didn't work.