Mercurial > hg > Game > Cerium
diff Renderer/Engine/spe/DataAllocate.cc @ 1403:95b114c66e14 draft
unify RenderTask
author | sugi |
---|---|
date | Wed, 15 Feb 2012 16:52:00 +0900 |
parents | 801d57ae1e29 |
children |
line wrap: on
line diff
--- a/Renderer/Engine/spe/DataAllocate.cc Wed Feb 15 15:14:52 2012 +0900 +++ b/Renderer/Engine/spe/DataAllocate.cc Wed Feb 15 16:52:00 2012 +0900 @@ -1,17 +1,16 @@ -//#include <stdio.h> #include <string.h> #include "DataAllocate.h" #include "Func.h" /* これは必須 */ -SchedDefineTask(DataAllocate); +SchedDefineTask1(DataAllocate,dataAllocate); static int -run(SchedTask *s, void *rbuf, void *wbuf) +dataAllocate(SchedTask *s, void *rbuf, void *wbuf) { - int count = (int)s->get_param(0); - for(int i=0;i<count;i++) { + long count = (long)s->get_param(0); + for(long i=0;i<count;i++) { void *idata = s->get_input(rbuf, i); long size = (long)s->get_param(i*2+1); long load_id = (long)s->get_param(i*2+2);