Unity d3d11 shader warnings ?

Hello, could someone help me with these warnings? Thanks :smile:

Program ‘vert_surf’, implicit truncation of vector type (compiling for d3d11_9x) at line 25
Program ‘vert_surf’, implicit truncation of vector type (compiling for d3d11) at line 25
Program ‘vert_surf’, ‘vert’: output parameter ‘o’ not completely initialized (compiling for d3d11) at line 48
Program ‘frag_surf’, Microcode Compiler possible performance issue: pixel shader input semantic ‘TEXCOORD3’ is unused at line 321
Program ‘vert_surf’, ‘distance’: implicit truncation of vector type (compiling for d3d11_9x) at line 70

Hi

I’m not totally sure, so sorry if I’m wrong (if someone can confirm), but here is what I think :

The implicit truncation of vector type is when you assign a float3 to a float4 for instance.
The “output parameter ‘o’ not completely initialized” means that you did’nt assigned all the fields of the ‘o’ struct.
And I guess the performane issue is because you are not using the parameter which as the TEXCOORD3 assigned.