This is a new concept for me, so I apologize if I come across as short-sighted or noobish,
I am writing a post-process shader that will take a scene that has been rendered to a texture and blur it.
Since this blur shader only operates on the texture, there is no need for a Vertex Shader.
So, How do I configure the Pipeline?
I know with a typical effect, you usually have two shaders, a Vertex Shader and a Pixel Shader.
So I would prime the API like so,
//Binding of worldViewProj Matrices and assests to their respective Constant Buffers
And then eventually,
d3dContext->draw || d3dContext->DrawIndexed();
But with only a pixel shader, I would only need to do this, maybe?
But what would I be drawing! If I don't have a vertex shader I don't need to submit a vertex or index buffer. Nor any of the corresponding matrices.
If I don't have a VertexBuffer submitted to D3D, I wouldn't expect the draw call to do anything.
But if I don't make this call: d3dContext->Draw();
How is this shader to be executed?
I guess i'm asking is how to execute a post-process shader or point me if possible in the right direction for learning how to utilize post-process shaders
Thansk for any replies!