Hello everyone, I am working on a project and I implemented a slash effect with VFX Graph with HDRP and Shader Graph.
In editor everything works fine, but when I build the project I get a compile error stating the following:
“‘Vert’: cannot convert from ‘struct AttributesMesh’ to ‘uint’
Compiling Subshader: 0, Pass: LineRenderingOffscreenShading, Vertex program with INSTANCING_ON
Platform defines: SHADER_API_DESKTOP UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_PBS_USE_BRDF1 UNITY_PLATFORM_SUPPORTS_DEPTH_FETCH UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS
Disabled keywords: DEBUG_DISPLAY SHADER_API_GLES30 SHADER_API_GLES31 SHADER_API_GLES32 UNITY_ASTC_NORMALMAP_ENCODING UNITY_COLORSPACE_GAMMA UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_VIRTUAL_TEXTURING _SURFACE_TYPE_TRANSPARENT _TRANSPARENT_REFRACTIVE_SORT _TRANSPARENT_WRITES_MOTION_VEC”
I have been stuck on this for quite a bit and have not found a lot of documentation on why this happens and how to fix it.
In VFX graph, I simply have a Output Particle Shader Graph Mesh - Unlit with my shader and mesh attached.
And here is my Shader Graph as a whole:
Note: Support VFX Graph is checked.
Any support on this would be greatly appreciated
.
