Mercurial > hg > Game > Cerium
diff Renderer/Engine/spe/DataAllocate.cc @ 915:aa9728394194 draft
create_polygon_task ..not worked yet.
author | yutaka@localhost.localdomain |
---|---|
date | Fri, 23 Jul 2010 18:05:40 +0900 |
parents | Renderer/Engine/spe/DataLoad.cc@c3b4ddd4ccdc |
children | b3a8545eb2fa |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Renderer/Engine/spe/DataAllocate.cc Fri Jul 23 18:05:40 2010 +0900 @@ -0,0 +1,25 @@ +#include <stdio.h> +#include <string.h> +#include "DataAllocate.h" +#include "Func.h" + +/* これは必須 */ +SchedDefineTask(DataAllocate); + +static int +run(SchedTask *s, void *rbuf, void *wbuf) +{ + + void *idata = s->get_input(rbuf, 0); + long size = (long)s->get_param(0); + long load_id = (long)s->get_param(1); + + void *buff = s->global_alloc(load_id, size); + + if (idata != NULL) { + memcpy(buff,idata,size); + } + + return 0; +} +