Search Issue Tracker
Not Reproducible
Votes
0
Found in [Package]
2019.2
2019.3.0b8
2020.1
Issue ID
1197378
Regression
No
[XR] undeclared identifier 'sampler_CameraDepthTexture' shader error after building the project with Oculus XR package installed
How to reproduce:
1. Open the attached "DepthSampleOculus.zip"
2. Open Project Setting > XR Plugin Management
3. In the XR Plugin Management window, add an Oculus Loader in the Plugin Providers
4. Build the project
Expected results: Build completes successfully with no errors
Actual results: Build completes and there are "undeclared identifier 'sampler_CameraDepthTexture'" shader errors
Reproducible with: 2019.2.16f1 (Oculus XR Plugin 0.8.4), 2019.3.0f2, 2020.1.0a16 (Oculus XR Plugin 1.1.4)
Not reproducible with the Oculus XR Plugin removed or when building for Android
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The Scene View becomes gray and "NullReferenceException" errors are thrown when attaching the Unity Editor process to RenderDoc
- Memory usage rapidly rises when changing colors in the color wheel
- Physically Based Sky's Horizon and Zenith Tint Color Selection Bars don't have immediate access to color pickers
- EmptyAdditionalLightShadowmapTexture leaks from memory when URP quality level is changed using QualitySettings.SetQualityLevel
- Referenced ScriptableObject field does not get updated and cannot be set to "None" when there are no Objects of that type
Straafe
Jan 03, 2024 18:27
What is the solution? I am getting a similar issue with 9 of my shaders
ickydime
Dec 13, 2021 18:20
Getting undeclared identifier 'sampler_CameraDepthTexture when building to Windows for the Vive using the XR Plug-in Management and OpenXR target.
M4R5
Jul 13, 2021 07:47
Bump
JasonBooth
May 20, 2021 22:56
I have a user hitting this as well. You need the quest plugged in to actually have it get triggered.
dmenefee
Apr 17, 2021 04:20
Ditto. This is a legitimately reproducible bug.
EntertainmentEnterprise
Oct 11, 2020 06:07
This absolutely has not been resolved unless you want to edit 40 built in shaders just to make them work... Please add an automated function to handle this or something, this is crazy that we have to edit every shader to work with SinglePassInstanced....