Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualgnomgrol

Posted 16 October 2012 - 01:22 PM

Hello, I got a problem with shaders.
When other people try to start my directxprogramms, they crash at the shadercompilation.
When I change the shaderversion to 5_0 or 2_0 (currently 4_0), it crashes the programm completly for myself also. And it seems like here lies the problem for other people too, since the one with the best graphicscard can run the programm, the others can't.

It seems like I need some more information on how to choose the correct shaderversion for each PC. How can I do that and what is causing this problem in my case?

#1gnomgrol

Posted 16 October 2012 - 12:04 PM

Hello, I got a problem with shaders. For me, anything is running fine. But when other people try to start my directxprogramms, they crash at the shadercompilation. Since they run the released exe, I can't think of a way to debug the problem. I know that it crashes in this 4 lines, but I can't output the debug.

D3DX11CompileFromFileA(vsName, 0, 0, vsFunction, "vs_4_0", D3D10_SHADER_ENABLE_STRICTNESS, 0, 0, &VS_Buffer, error, 0);
D3DX11CompileFromFileA(psName, 0, 0, psFunction, "ps_4_0", D3D10_SHADER_ENABLE_STRICTNESS, 0, 0, &PS_Buffer, error, 0);
d3d11Device->CreateVertexShader(VS_Buffer->GetBufferPointer(), VS_Buffer->GetBufferSize(), NULL, &VS);
d3d11Device->CreatePixelShader(PS_Buffer->GetBufferPointer(), PS_Buffer->GetBufferSize(), NULL, &PS);


Can you tell me how I can debug directx apps properly on other PCs?

PARTNERS