On Wed, Jul 26, 2017 at 12:21 PM, Marco Domingues <
marcodomingue...@gmail.com> wrote:

>
> Hm I guess one alternative would be to have a buffer for the output queue
> (a buffer of cl_uints with the indexes of the partitions evaluated) but
> unless we run the rt_boolfinal kernel 2 times (1st to count the number of
> partitions evaluated and 2nd to store the partitions evaluated) I don’t see
> how it would skip invalid partitions. We would have to test the output
> queue buffer against UINT_MAX in the shading process, which would be
> similar to the ‘pp->evaluated’ test I do. Maybe I am missing something?
>

There is another way. You simply store another 'pointer' in struct
partition that points to the next valid partition.

-- 
Vasco Alexandre da Silva Costa
PhD in Computer Engineering (Computer Graphics)
Instituto Superior Técnico/University of Lisbon, Portugal
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to