Advertisement Jump to content
Sign in to follow this  
hossainiir

Reading Stream-output stage data

This topic is 1822 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

 

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!