Vitaly Dilmukhametov

  Home  |   Contact  |   Syndication    |   Login
  17 Posts | 0 Stories | 67 Comments | 0 Trackbacks

News

Archives

Post Categories

Wednesday, August 10, 2011 #

Recently I found interesting “feature” of fxc compiler (it’s a part of MS DirectX SDK). When you try to compile shaders, and path to source code contains non-Latin characters, you’ll get error like following:

Error 1 The command ""%DXSDK_DIR%Utilities\bin\x86\fxc.exe" /T vs_2_0 /O3 /Zpr /Fo "f:\импортер\SilverlightApplication1\Shaders\vertexshader.vs" "f:\импортер\SilverlightApplication1\Shaders\vertexshader.hlsl"
"%DXSDK_DIR%Utilities\bin\x86\fxc.exe" /T ps_2_0 /O3 /Zpr /Fo "f:\импортер\SilverlightApplication1\Shaders\pixelshader.ps" "f:\импортер\SilverlightApplication1\Shaders\pixelshader.hlsl"" exited with code 1.

As you can see, highlighted part of paths contains Cyrillic symbols. When I rename “импортер” to “Importer”, it compiled ok.

 

So, to avoid problems I recommend you do not use non-Latin characters in the path ;)