title: VS 2013 Directx project Vertex shader file missing
body: <p>This is my first experience with shaders, I am following a tutorial for directx programming and I have two shader files included in my project with .vs and .ps file types. I am unsure if these file types are recognized as the file types for hlsl in visual studios have .hlsl at the end. Is there a way to get these file types recognized, if not how would I change my code below to include the different filetype? My code compiles, it just returns my error message saying color.vs missing.</p>
  
  <p>Under the initialization function for my colorshaderclass.cpp the returns function call is as follows:</p>
  
  <pre><code>result = InitializeShader(device, hwnd, L"../Engine/color.hlsl", L"../Engine/color.ps");
  </code></pre>
  
  <p>The initializeShader function itself is defined as follows:</p>
  
  <pre><code>bool ColorShaderClass::InitializeShader(ID3D11Device* device, HWND hwnd, WCHAR* vsFilename, WCHAR* psFilename)
  {
  HRESULT result;
  ID3D10Blob* errorMessage;
  ID3D10Blob* vertexShaderBuffer;
  ID3D10Blob* pixelShaderBuffer;
  D3D11_INPUT_ELEMENT_DESC polygonLayout[2];
  unsigned int numElements;
  D3D11_BUFFER_DESC matrixBufferDesc;
  
  //initializ the pointers this function will use to null
  errorMessage = 0;
  vertexShaderBuffer = 0;
  pixelShaderBuffer = 0;
  
  //compile vertex shader code
  result = D3DX11CompileFromFile(vsFilename, NULL, NULL, "ColorVertexShader", "vs_5_0", D3D10_SHADER_ENABLE_STRICTNESS, 0, NULL,
      &amp;vertexShaderBuffer, &amp;errorMessage, NULL);
  
  if (FAILED(result))
  {
      //if the shader failed to compile it should have written something to error message
      if (errorMessage)
      {
          OutputShaderErrorMessage(errorMessage, hwnd, vsFilename);
      }
      //if there was nothing in error message then it couldnt find shader file
      else
      {
          MessageBox(hwnd, vsFilename, L"Missing Shader File", MB_OK);
      }
  
      return false;
  }
  
  //compile pixel shader code
  if (FAILED(result))
  {
      if (errorMessage)
      {
          OutputShaderErrorMessage(errorMessage, hwnd, psFilename);
      }
  
      else
      {
          MessageBox(hwnd, psFilename, L"Missing Shader File", MB_OK);
      }
  
      return false;
  }
  </code></pre>
  
  <p>Any help would be much appreciated. I'm not sure if this is a settings issue or if I need to change the filetype or if I need to include headers (tried this option though and VS tried to debug the hlsl file using c++ syntax).</p>