Reading Stream-output stage data

Started by
3 comments, last by hossainiir 10 years, 3 months ago

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.

???? ?? ??? ????

Persian Gulf

Advertisement

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

current project: Roa

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.

???? ?? ??? ????

Persian Gulf

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.

current project: Roa

Thanks Iwn, yes you are right, I've never seen that line.

???? ?? ??? ????

Persian Gulf

This topic is closed to new replies.

Advertisement