Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Reading Stream-output stage data


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 hossainiir   Members   -  Reputation: 1022

Like
0Likes
Like

Posted 18 January 2014 - 12:51 PM

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


Sponsor:

#2 lwm   Members   -  Reputation: 1451

Like
0Likes
Like

Posted 19 January 2014 - 08:55 AM

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


#3 hossainiir   Members   -  Reputation: 1022

Like
0Likes
Like

Posted 19 January 2014 - 11:06 AM

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


#4 lwm   Members   -  Reputation: 1451

Like
2Likes
Like

Posted 19 January 2014 - 04:49 PM

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


#5 hossainiir   Members   -  Reputation: 1022

Like
0Likes
Like

Posted 21 January 2014 - 01:53 AM

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


خلیج تا ابد فارس

Persian Gulf





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS