Search Issue Tracker
Fixed in 5.1.0
Votes
0
Found in
5.0.1f1
Issue ID
693678
Regression
No
HLSL to Metal translator fails properly translate CameraMotionBlur shader
HLSL to Metal translator fails properly translate CameraMotionBlur shader
1. What happened
Translated shader causes runtime compilation errors when running on Metal.
It's failing with error:
program_source:51:13: error: assigning to 'half4' (aka 'vector_half4') from incompatible type 'vec<float, 4>' (vector of 4 'float' values)
tmpvar_16 = _CameraDepthTexture.sample(_mtlsmp__CameraDepthTexture, (float2)(_mtl_i.xlv_TEXCOORD0), level(0.0));
2. How we can reproduce it using the example you attached
Run attached project on Metal capable iOS device. You will see pink quad on screen and shader compilation errors in Xcode debugger console.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Add comment