I'm aware that I can optionally specify shaders in DX9, and that I'm required to specify a shader in DX10. The question I have is what happens if I say I want to use a shader and I don't specify one. In a phrase, what I'm looking for is the default behavior. Is there a default shader?
I'm interested in the following scenarios:
- DX10, don't specify a pixel shader. (Do I have to call PSSetShader(NULL)? What if I don't?) What is the default shader that will run?
- Same question, vertex shader.
- DX9, if I specify that I'm going to use a pixel shader, but then don't specify one, what happens? Is there a default? Is there a default if I elect to use the fixed-function interface? Are those defaults the same?
- Bonus question: What about OpenGL and GLSL? Same question as DX9.
I'd love to see a pointer to the documentation for this - I've perused the Microsoft online DX docs but have really gotten nowhere in finding any sort of default behavior.
Thanks!