[DX10] Append to Steam Out
I am having trouble appending to the steam out buffer
UINT offest = -1;
Device->SOSetTargets(1,&AppendBuffer,offset);
The buffer only has info from the last draw call, then seems to get overwritten each time.
Any info is appreciated, thanks!
[Edited by - MetaKnight on December 19, 2007 7:39:18 AM]
I guess that you have misunderstood last parameter (from DXSDK):
I would try:
Also make sure that the buffer has been created with D3D10_BIND_STREAM_OUTPUT flag.
Quote:
pOffsets - [in] Array of offsets to the output buffers from ppBuffers, one offset for each buffer. The offset values must be in bytes.
I would try:
UINT offest[1] = {0};Device->SOSetTargets(1, &AppendBuffer, offset);
Also make sure that the buffer has been created with D3D10_BIND_STREAM_OUTPUT flag.
Yes the offest is set to 0, but the that overwrites the previous information in the steam out buffer. It says that I can use -1 offset to append, but this does not seem to work.
Quote:Original post by Paool
Does the Debug Layer produces any warnings or errors?
Unfortunately no , is there any way to get debug info on the steam buffer?
Like how much is written and where?
Quote:Unfortunately no , is there any way to get debug info on the steam buffer?
Like how much is written and where?
I doubt it.
Have you tried looking into DirectX SDK samples using StreamOutput (like AdvancedParticles, or PipesGS)?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement