Search Issue Tracker
Won't Fix
Votes
0
Found in
2023.1.0b13
2023.2.0a20
2023.3.0a1
Issue ID
UUM-33859
Regression
No
Compile Error in Visual effects graph
Repo steps:
# Open Unity Scene (HDRP)
# Go to Window > Visual Effects > Visual Effects Graph
# Name the Graph anything and double click it in the Project window
# Follow the video attached to this Bug
Expected Result: No errors in the console
Actual Result: Compile error is visible in the console
Reproducible with: 2021.3.12f1, 2022.2.13f1, 2023.1.0b14, 2023.2.0a12
Cant test with: 2020.3.46f1 (Functionality does not exist)
Platforms tested: Win 11
Notes:
Unity cannot compile the VisualEffectAsset at path "Assets/New Graph.vfx" because of the following exception:
System.InvalidOperationException: The expression UnityEditor.VFX.VFXExpressionCastFloatToBool is not valid as it have the invalid flag: InvalidOnCPU
at UnityEditor.VFX.VFXExpressionGraph.BuildMapper (UnityEditor.VFX.VFXContext context, System.Collections.Generic.Dictionary`2[TKey,TValue] dictionnary, UnityEditor.VFX.VFXDeviceTarget target) [0x0004c] in .\Library\PackageCache\com.unity.visualeffectgraph@15.0.5\Editor\Compiler\VFXExpressionGraph.cs:277
at UnityEditor.VFX.VFXExpressionGraph.BuildCPUMapper (UnityEditor.VFX.VFXContext context) [0x00000] in .\Library\PackageCache\com.unity.visualeffectgraph@15.0.5\Editor\Compiler\VFXExpressionGraph.cs:244
at UnityEditor.VFX.VFXGraphCompiledData.Compile (UnityEditor.VFX.VFXCompilationMode compilationMode, System.Boolean forceShaderValidation, System.Boolean enableShaderDebugSymbols, UnityEditor.VFX.VFXAnalytics analytics) [0x00441] in .\Library\PackageCache\com.unity.visualeffectgraph@15.0.5\Editor\Compiler\VFXGraphCompiledData.cs:1169
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
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
- Crash on when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
Resolution Note:
The error is actually expected.
Load texture is GPU only and spawner context is evaluated on CPU. So no texture load can be used in Spawners.
The error message is unclear but it was improved in newer versions