title: error X3000: Illegal character in shader file
body: <p>I pasted a line of shader code from SO and now my project refuses to work.</p>
  
  <ul>
  <li><p>I removed the tainted line of code.</p></li>
  <li><p>I've re-written the shader multiple times from scratch using VS, Notepad and Notepad++ as suggested on the <a href="http://answers.unity3d.com/questions/626847/cginc-errors.html" rel="noreferrer">Unity forums</a>.</p></li>
  <li>I've used the hex editor view in Notepad++ to rule out the first two bytes aren't <code>0xFE 0xFF</code> as suggested on this <a href="https://www.gamedev.net/topic/668230-directx-11-frank-luna/" rel="noreferrer">gamedev question</a>.</li>
  </ul>
  
  <p>I really can't figure this one out. I'm grateful for any suggestions you might have.</p>
  
  <pre><code>cbuffer CB_PER_FRAME : register(b0)
  {
      column_major float4x4 view;
      column_major float4x4 proj;
      float4 eyePosition;
  };
  
  struct VertexInput
  {
      float3 position : POSITION;
      float3 normal   : NORMAL;
      float2 texCoord : TEXCOORD;
  
      row_major float4x4 world : WORLD;
      float4 color : COLOR;
      uint instanceID : SV_InstanceID;
  };
  
  struct PixelInput
  {
      float4 position : SV_POSITION;
      float3 normal   : NORMAL;
      float2 texCoord : TEXCOORD;
      float4 color    : COLOR;
  };
  
  PixelInput VertexShaderMain( VertexInput vertexInput )
  {
      PixelInput pixelInput (PixelInput)0;
  
      pixelInput.position = mul( float4( pixelInput.position, 1.0f ), vertexInput.world );
      pixelInput.position = mul( pixelInput.position, view );
      pixelInput.position = mul( pixelInput.position, proj );
  
      pixelInput.normal = normalize( mul( pixelInput.normal, (float3x3)vertexInput.world ) );
      pixelInput.texCoord = vertexInput.color;
      pixelInput.color = vertexInput.color;
  
      return pixelInput;
  }
  
  float4 PixelShaderMain( PixelInput pixelInput ) : SV_Target
  {
      return pixelInput.color;
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/REEnp.png" rel="noreferrer"><img src="https://i.stack.imgur.com/REEnp.png" alt="enter image description here"></a></p>