tmp
May 28, 2014, 10:51am
1
hey!
i have a question regarding to the indirectlookup example in the dx11-girlpower package ( dx11-vvvv-girlpower/girlpower/sm5/directcompute/indirectlookup at master · letmp/dx11-vvvv-girlpower · GitHub ).
the AppendStructuredBuffer contains only ids of points that match a certain condition.
with the help of IndexIndirect the shader knows, which points he has to draw.
my question:
how can I filter the coordinates in a computeshader? here is a snippet of the code i am using:
but this gives me ALL coordinates of the streamoutbuffer instead of the filtered coords.
ideas anyone?
tmp
June 2, 2014, 8:34pm
2
No one here who wanted to filter a streamout buffer and use it in a computeshader?
vux
June 3, 2014, 11:33am
3
You need to set indirect dispatch, since you are bound to warp size in case of compute shader.
https://github.com/mrvux/dx11-vvvv/commit/34588169c81266a5dc21ef0ce022ee727e20edc6
Adds node to build such a dispatcher.
tmp
June 4, 2014, 4:34pm
4
thanks for your answer, vux!
unfortunately i cannot get it to work when using the dispatchIndirect node.
can you upload a help patch in analogy to the indirectlookup example from girlpower?