Hi guys, I found a problem with TextureFX in exported project. I’ve described it here.
It is easy to reproduce, but for some reason you need a second pc to run the compiled project.
It will throw an exception like this one:
System.InvalidCastException: Unable to cast object of type 'System.Single' to type 'Stride.Graphics.Texture'.
at VL.Core.NodeBuilding.PinInstance`1.VL.Core.IVLPin.set_Value(Object value)
at _BasicComponents_.Mixer.BasicComponents.InvertComponent_C.Update_()
at _Core_.Mixer.Core.TwoDScene_C.Update_()
at _Core_.Mixer.Core.RenderSlot_HjibzFwtiGPPSR7O9tIS7Y.Update(CompositionSlot_C Input_In, Texture& Texture_Out)
at _Core_.Mixer.Core.Composition_C.Render(Texture& Texture_Out)
at __MIXER_tester_.Main._MIXER_testerApplication_Ba6sY4xaoelOwKB6LBWbFe.Update()
at VL.App.AppHost.<RunCore>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at VL.App.WindowsForms.WindowsFormsAppHost.<Application_Idle>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
As far I could find it appears when you use FilterBase
Seem to me it is something with pin creation order.
preview-64