Hi,
I have a very simple vertex and pixel shader that they work fine, as MSDN describes here we can get vertex data from render pipeline, I want to know how can I do that does any one knows??
Thanks.
Hi,
I have a very simple vertex and pixel shader that they work fine, as MSDN describes here we can get vertex data from render pipeline, I want to know how can I do that does any one knows??
Thanks.
What are you trying to do? The MSDN page you referenced links to an example ("Getting Started with the Stream-Output Stage") that shows how to stream the output of a geometry shader to a buffer.
You basically just
- Create a buffer with the appropriate flag
- Create a shader with stream-out
- Bind the buffer to the pipeline (SOSetTargets)
- Draw
Thanks Iwm,
"Getting Started with the Stream-Output Stage" uses geometry shader to get stream-output but I haven't any Gs. I want to get stream-output just with having Vs.
As it says in the article, you can use a vertex shader's bytecode to construct the geometry shader if you don't need an actual geometry shader.