Search Issue Tracker
By Design
Votes
0
Found in
2018.4
2019.4
2020.2
2021.1
2021.2
Issue ID
1306556
Regression
No
Using a SamplerState associated with a Texture, without using the Texture itself results in an error
Reproduction steps:
1. Open attached project "ShaderTest"
2. In Project window, select Assets/TestSamplerState.shader
3. In Inspector window, observe error
4. If there is no error, in Inspector window, press "Compile and show code" button
Expected result: No errors
Actual result: " Fragment program 'frag': Unrecognized sampler 'samplertexture1'" error
Reproducible with: 2018.4.31f1, 2019.4.18f1, 2020.2.2f1, 2021.1.0b3, 2021.2.0a2
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
- Visual Effect Graph "Direction" gizmo is set to a random position/location in Scene view and moves with the Scene camera when panning or moving
- The Editor freezes when waiting on NavMesh-related jobs
- Error "NullReferenceException: Object reference not set to an instance of an object" is present and Asset Bundle is not loaded when using a relative path in a Windows Standalone Player
- Updated "Category" name is not refreshed in the "Create new Shader Graph Asset" Search > Category list
- Long Light GameObject names are overflowing the "Light Batching Debugger" text fields
Resolution Note (2021.2.X):
When a texture is stripped from the shader (which happens to unused textures), it's not present in the reflection data, and we have no way of knowing how to configure things.