I’m writing a program which displays a MS3D model using DirectX, and unfortunately, the result shows nothing on the screen.
When I use the Graphics Debugger from Visual Studio 13, I notice that the pixel shader is missing from the pipeline, as it is shown in the below picture

I debugged all of the function in the above list, and all of them return OK. Nothing wrong.
My question is what is the reason the pixex shader is missing from pipleline, which in turn may result in the empty screen.

One Response to “DirectX11 pixel shader in pipeline is missing”

I just spotted something, which doesn’t look right. The alpha value returned from your pixel shader could easily end up as zero, which will make everything transparent. Try forcing it to be 1.0 like this:

float4 color = texColor * (max(dot(n,l),0) + 0.05f );
// At this point color.a could be zero which will make things transparent
color.a = 1.0; // Could also use texColor.a
return( color );

Of course the colour will most likely be black after the fix if that was what’s wrong, so make sure the background color isn’t black.