Jump to content
  • Advertisement
Sign in to follow this  
ankhd

(FIXED 4 Days to find what was going on)DX10 Rendering to stream out

This topic is 2618 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

When rendering to a stream out do I need to wait for for the streamed buffer to have data.



because if I have a loop like so

for(ctr = 0; ctr < 10; ctr++)
rendertostream(mesh[ctr];//each mesh has its own buffer that gets streamed to



and then I try to render the streamed out buffers straight after the loop above is done and nothing gets rendered

but if I first render to the stream then I quit out and come back later and render the streamed buffers it works.







Well you dont need to wait for the streamed buffer.

One of my shaders was setting the depth stencil state to false.

Placed this cond in the fx tech and it worked



//--------------------------------------------------------------------------------------
// State
//--------------------------------------------------------------------------------------
DepthStencilState DisableDepth
{
DepthEnable = FALSE;
DepthWriteMask = 0;
};

DepthStencilState EnableDepth
{
DepthEnable = TRUE;
DepthWriteMask = ALL;
};



SetDepthStencilState( EnableDepth, 0 );


had me there for a while needed to post and like always just after posting I find the issue.:)




how do I find out when my stream has been filled.

Share this post


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

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!