If I set up a material using spiral blur I get a list of SM5 compilation warnings/errors. This happens on my home pc. If I create the same material on my office computer it works fine. The same happens when trying to create a thin translucent material.
It only works if I connect the results pin directly to base color, which is not what I want. If i try to compute anything with the result I also get the errors.
Home pc: GTX 1160
Work pc: RTX 2080
Material for testing purpose:
[SM5] /Engine/Generated/Material.ush(1864:13): warning: implicit truncation of vector type
RandomSamp+=Texture2DSample(Tex,TexSampler,ScenePixels);
^
[SM5] /Engine/Generated/Material.ush(1867:17): warning: implicit truncation of vector type
TempAARotation*=RandomSamp;
^
[SM5] /Engine/Generated/Material.ush(1868:25): warning: implicit truncation of vector type
TempAADistance*=StepSize*RandomSamp;
^
[SM5] /Engine/Generated/Material.ush(1888:9): warning: implicit truncation of vector type
NewUV.x = BaseUV.x + (CurOffset.x * (CurDistance+(RandomSamp*TempAADistance)));
^
[SM5] /Engine/Generated/Material.ush(1889:9): warning: implicit truncation of vector type
NewUV.y = BaseUV.y + (CurOffset.y * (CurDistance+(RandomSamp*TempAADistance)));
^
[SM5] /Engine/Generated/Material.ush(2282:30): warning: implicit truncation of vector type
PixelMaterialInputs.Opacity = Local3;
^
[SM5] error: validation errors
at 0x28380291210 inside block ?internal.CalcInterpolants@@YAXUFRayCone@@UFDefaultAttributes@@UFVertexFactoryInterpolantsVSToPS@@@Z.exit of function ?MaterialCHS@@YAXUFPackedMaterialClosestHitPayload@@UFDefaultAttributes@@@Z Instructions should not read uninitialized value
at 0x28380291290 inside block ?internal.CalcInterpolants@@YAXUFRayCone@@UFDefaultAttributes@@UFVertexFactoryInterpolantsVSToPS@@@Z.exit of function ?MaterialCHS@@YAXUFPackedMaterialClosestHitPayload@@UFDefaultAttributes@@@Z Instructions should not read uninitialized value
[SM5] at 0x28380290410 inside block ?internal.CalcInterpolants@@YAXUFRayCone@@UFDefaultAttributes@@UFVertexFactoryInterpolantsVSToPS@@@Z.exit of function ?MaterialCHS@@YAXUFPackedMaterialClosestHitPayload@@UFDefaultAttributes@@@Z Instructions should not read uninitialized value
at 0x28380290490 inside block ?internal.CalcInterpolants@@YAXUFRayCone@@UFDefaultAttributes@@UFVertexFactoryInterpolantsVSToPS@@@Z.exit of function ?MaterialCHS@@YAXUFPackedMaterialClosestHitPayload@@UFDefaultAttributes@@@Z Instructions should not read uninitialized value
at 0x28380290f10 inside block ?internal.CalcInterpolants@@YAXUFRayCone@@UFDefaultAttributes@@UFVertexFactoryInterpolantsVSToPS@@@Z.exit of function ?MaterialCHS@@YAXUFPackedMaterialClosestHitPayload@@UFDefaultAttributes@@@Z Instructions should not read uninitialized value
[SM5] at 0x28380291410 inside block ?internal.CalcInterpolants@@YAXUFRayCone@@UFDefaultAttributes@@UFVertexFactoryInterpolantsVSToPS@@@Z.exit of function ?MaterialCHS@@YAXUFPackedMaterialClosestHitPayload@@UFDefaultAttributes@@@Z Instructions should not read uninitialized value
Validation failed.
D3DCompileToDxil failed
[SM5] error: validation errors
at 0x16e59486390 inside block ?internal.CalcInterpolants@@YAXUFRayCone@@UFDefaultAttributes@@UFVertexFactoryInterpolantsVSToPS@@@Z.exit of function ?MaterialCHS@@YAXUFPackedMaterialClosestHitPayload@@UFDefaultAttributes@@@Z Instructions should not read uninitialized value
at 0x16e59487710 inside block ?internal.CalcInterpolants@@YAXUFRayCone@@UFDefaultAttributes@@UFVertexFactoryInterpolantsVSToPS@@@Z.exit of function ?MaterialCHS@@YAXUFPackedMaterialClosestHitPayload@@UFDefaultAttributes@@@Z Instructions should not read uninitialized value
[SM5] at 0x16e59486690 inside block ?internal.CalcInterpolants@@YAXUFRayCone@@UFDefaultAttributes@@UFVertexFactoryInterpolantsVSToPS@@@Z.exit of function ?MaterialCHS@@YAXUFPackedMaterialClosestHitPayload@@UFDefaultAttributes@@@Z Instructions should not read uninitialized value
at 0x16e59487b10 inside block ?internal.CalcInterpolants@@YAXUFRayCone@@UFDefaultAttributes@@UFVertexFactoryInterpolantsVSToPS@@@Z.exit of function ?MaterialCHS@@YAXUFPackedMaterialClosestHitPayload@@UFDefaultAttributes@@@Z Instructions should not read uninitialized value
at 0x16e59487d10 inside block ?internal.CalcInterpolants@@YAXUFRayCone@@UFDefaultAttributes@@UFVertexFactoryInterpolantsVSToPS@@@Z.exit of function ?MaterialCHS@@YAXUFPackedMaterialClosestHitPayload@@UFDefaultAttributes@@@Z Instructions should not read uninitialized value
[SM5] at 0x16e59487890 inside block ?internal.CalcInterpolants@@YAXUFRayCone@@UFDefaultAttributes@@UFVertexFactoryInterpolantsVSToPS@@@Z.exit of function ?MaterialCHS@@YAXUFPackedMaterialClosestHitPayload@@UFDefaultAttributes@@@Z Instructions should not read uninitialized value
Validation failed.
D3DCompileToDxil failed