I have a really strange problem. At first, I had 'unrecognized compiler targets' even with my own shaders, but now here's what happens in my own project (all directories are fine and the paths to shaders are OK, I checked it):
Code: Select all
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL pixel shader compilation failed:
error X3501: 'pixelMain': entrypoint not found
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL pixel shader compilation failed:
error X3501: 'pixelMain': entrypoint not found
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL pixel shader compilation failed:
error X3501: 'pixelMain': entrypoint not found
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL pixel shader compilation failed:
error X3501: 'pixelMain': entrypoint not found
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL pixel shader compilation failed:
error X3501: 'pixelMain': entrypoint not found
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL pixel shader compilation failed:
error X3501: 'pixelMain': entrypoint not found
I'm using D3D9 and XEffects are used only for post-processing, so I really can't find where is the problem.
Any solutions to this?
EDIT: Here's what I get with OGL:
Code: Select all
GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"
GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"
GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"
GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"
GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"
GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"
GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"
GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"
GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"
GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"
GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"
GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"
GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"
GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"
GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"
GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"
GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"
[FIXED!]
The path was a little bit messed up (Winblows stuff) and I ran into the flipped textures problem. So I used the solution by stefbuet and worked perfectly! Ty!